Skip to content

brian-tran-dev/BattleShip_Haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battle Ship (Haskell implementation)

Introduction

This project implement a strategy for playing battleships in haskell

Structure

All the nescessary files for my algorithm is stored in folder src

App folder is for playing

Test folder is for testing

Algorithm

My algorithm is divied into two cases:

  • Case 1: There is no Hit shot on the board. The algorithm will choose to shoot the cell with the largest impact on the board

  • Case 2: There is at least a Hit shot on the board. The algorithm will find a posibility of the boat on the board that contain the most Hit shot and then try to complete that boat.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published