|
||||||
| Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi all,
I'm working on a program that simulates Conway's Game of Life. I have the GUI code and i'm now working on a class that has the methods to fully run this method. I'm stuck on a few of the methods. please respond if you can be of any help. Thanks |
| Sponsored Links |
|
|
|
|||||
|
Hello and Welcome. What do you need help with?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||
|
I'm trying to write three different methods. a changeCell method which places a cell in the square at that row and column if it is empty.
Row and column should be specified using 0-based indexing. changeCell(0,2) would place a cell in the 3rd position of the top row. If there already is a cell in that location, that square should be made empty instead. the other is an update method that updates the society to the next generation according to the rules specified above. In addition, this method should return a boolean indicating whether there was a change from the previous generation, false if no change, true otherwise. you are familiar with the game of life yes? |
|
|||||
|
It's kind of tricky to help without knowing the basic logic you have in mind. There are a few ways you can be modeling the game, and not knowing the model makes it harder to help you finish. Also, you may need to change your model if it seemed easy but is actually making it harder to finish.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a card game (multiplaye online with AI).. what do I program this in? | anothersoldier | General Programming | 1 | 07-19-2007 07:46 AM |
| Can someone help me with this code for the Game Of Life | njod | C and C++ | 2 | 04-11-2007 12:39 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |