aspose file tools
The moose likes Java in General and the fly likes Create simple game in java. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Create simple game in java." Watch "Create simple game in java." New topic
Author

Create simple game in java.

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 94

Hello the all!
I create one game in Java.
I doing correct ? See code:



The Class TicTaToe is one welcome and Play, is for appear the window for o play player. How to ? Help-me!
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

You may need to do the following.
1. Find out how TicTacToe game is played by humans
2. Write a java program that can mimic one human user and a computer to play the game
3. Allow the program to receive inputs from human user to make a move and let the program guess (you may need to find out a way to block the human user from winning or find the right location to win) the next optimal move


S.D. MADHAN
Not many get the right opportunity !
Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 94

Hi! Thanks by response!
See my code:



The window of JFrame, here: . When start program, that window is run. I that run the window, when the user write Play, here:


Can me help ? Please?
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

You may use the following.

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 94

You left of my logic. Sorry, No can follow the your logic.
 
jQuery in Action, 2nd edition
 
subject: Create simple game in java.
 
Similar Threads
TicTacToe Game
TicTacToe Game..
TicTacToe game
TicTacToe - Computer's move
TicTacToe in Java