Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 371 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 371 Bytes

Rat-Invasion

Simple C++ game, where the user must avoid getting bitten by rats in an arena of modifiable size. The player can drop poison pellets, to reduce each rat's health.

AI algorithm

The function recommendMove is an AI player that wins the game over 90% of the time by looking at the health of each rat, and the advantages of moving to a certain position.