Skip to content

zuloagon/kalah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kalah

Java program that plays the game of Kalah against a human user.

This is a Java program that plays the game of Kalah (https://en.wikipedia.org/wiki/Kalah) against a human player.

The class Kalah.java runs the game by running methods from the class Board.java

Relevant methods in the class Board.java serve the basic functions of the game:

printInstructions: Prints instructions to the terminal.

initializeBoard: Initializes board to start the game.

printBoard: Prints the current status of the board.

moveHuman: Human player makes move.

moveComputer: Computer makes a move.

checkIfGameIsDone: Checks if either player has won.

printFinalScores: Prints final scores to the board when game is done.

About

Java program that plays the game of Kalah against a human user.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages