Skip to content

parthnagori/BattleShip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BattleShip

BattleShip Game Playing AI. AI works by calculating a Probability Density Function at the beginning of every move. For every location on the board, a probability of containing a ship is calculated, and next move is determined.

To Run

$ python3 playBattleship.py

Distribution of moves taken to win (100 games on BoardSize of 10x10)

Distribution

Norm Distribution

Average number of moves to win: 50

About

BattleShip Game Playing AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages