Results 1 to 6 of 6
Thread: how to create board in java...
- 09-19-2008, 03:22 PM #1Member
- Join Date
- Sep 2008
- Rep Power
how to create board in java...
... good day... i'm a newbie in this forum... pardon if my way of asking is not right...
...my professor in one of my computer science subject is requiring us to pass a project written in java... it may either be a game or an application ... and i decided to make "dama" as my project... but i'm having a hard time starting coding... i don't know how to create a board in java... i don't know what will i be needing to generate one... do i need to use an applet (... but i don't know which do i need)?... i really don't know how to create a 10x10 grid and put the pieces in it... (dama... is like chess... the only difference is that... pieces' move is general/the same ... unless a certain condition was matched)... thanks for all the help... God bless...
- 09-19-2008, 03:48 PM #2
So you want to develop a game as your project.
First you have to take a decision, either you want to develop as a web based or an application. If you want to develop a web base game you want to learn about applet.
What ever you work on, better to use swing. Looking at your question, seems to me you never write any such application in Java. So the best thing is do some examples on swing. Best place is the Suns' tutorial.
See this page.
Anything you want to know?
- 09-19-2008, 04:12 PM #3
First of all write the game code,which will work in console and then add JComponents to the game.
Create two-dimensional array,and try to find the solution how to place the dama components into the array,then think of the algorithms which will work for each turn of the player,and will update the array.But if you know something about recursion in Java,so it is very helpful for you.
Two years ago i was also asked to make a Domino and card game,but i used for that Generics.First of all i wrote the classes which which engined the game in console and then used their methods in created Swing classes.
- 01-20-2010, 04:07 AM #4
- 01-20-2010, 04:42 AM #6
- By java_fun2007 in forum New To JavaReplies: 8Last Post: 12-28-2011, 05:58 PM
- By roshithmca in forum AWT / SwingReplies: 0Last Post: 02-04-2008, 06:57 AM
- By tommy in forum New To JavaReplies: 1Last Post: 08-05-2007, 07:43 AM
- By Albert in forum New To JavaReplies: 2Last Post: 07-04-2007, 08:01 AM
- By sreedharvlsi in forum New To JavaReplies: 1Last Post: 07-02-2007, 11:57 AM