Skip to content

cit-upenn/594-s17-recitiation-tic-tac-toe-interfaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

#CIT 594 - Recitation #2 #Tic-Tac-Toe with Interfaces

Look through the files and implement the game using the interfaces. There’s a RandomPlayer implementation you can use to get started on the game logic.

##Files

  • Game.java - Interface to run game
  • Player.java - Interface for playing turns
  • RandomPlayer.java - Sample Player implementation
  • Mark.java - Indicates the location of an X or O mark on the board
  • *IllegalTurnException.java - Thrown by Game if player makes invalid move

##Tips The Game interface throws an exception if a player makes an illegal move. This means your game will have to check the legality of all moves. If you’re unsure about exception handling, one of the TAs can help.

There are few conditions you’ll want to check before and after calling each player’s doTurn method. What are they?

About

Implementation of Tic Tac Toe Interface - Recitation #2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages