Skip to content

louaybs7/Java-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Games

1ST project : Create a simulation of the Capitaly game with different players and strategies. Players move around a cyclical board based on dice rolls. Fields on the board can be properties, services, or lucky fields. Properties can be bought and developed with houses. Stepping on an owned property incurs a payment to the owner based on the presence of a house. Services require payments to the bank, while lucky fields provide the player with money. Three strategies exist: greedy, careful, and tactical. Game parameters are read from a text file, including field types and costs. If a player runs out of money, they lose, and their properties become available to buy. The program should be able to read roll dice values from the file and identify the second loser.

2nd_Project (Four Game) : This a two-player game is played on a board consists of n x n fields, where each field contains a value between 0 and 4. Initially, all the fields contain the value of 0. If a player chooses a field, then the value of the field and its neighbours incremented by one (if the value is less than 4). The player’s score represents how many fields did he make to have the value of 4. If a value of a field reaches 4, then the field is colorized with the color of the actual player (red or blue). The game ends, when all fields have the value of 4. The player having the higher score wins. Implement this game, and let the board size be selectable (3x3, 5x5, 7x7). The game should recognize if it is ended, and it has to show in a message box which player won. After this, a new game should be started automatically.

3rd project(Snake Game)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages