• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC....

 
lee merlyn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to create a program about binggo game?? plss... help me!!!
thanks... thanks.....

[ October 10, 2005: Message edited by: lee merlyn ]
[ October 10, 2005: Message edited by: lee merlyn ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC???

1) create a grid to display the numbers
eg 10 x 10 JButtons(with text set to number)
the buttons will be in an array, either [100] or [10][10]

2) a button to start a new game
this resets all background color of the buttons to the same color (eg white), then
generate a random number 1 - 100
(simple version) if the number hasn't been generated before,
change the background color of the random-corresponding button (eg red)
check all the buttons numbers in the row of the random number
if they are all the 'selected color' (red) - "Winner" game over

this is very basic, but should be enough to get you thinking about how to
solve the problem.

have a go, and post questions on specific areas if you are stuck
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!