Skip to content

Solitaire Battleships puzzle with Genetic Algorithm in Python

Notifications You must be signed in to change notification settings

srahnama/battleShipPuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solitaire Battleships puzzle with Genetic Algorithm

The Battleship puzzle (sometimes called Bimaru, Yubotu, Solitaire Battleships or Battleship Solitaire) is a logic puzzle based on the Battleship guessing game.

Prerequisites

  • python
  • matplotlib
  • pip
  • tkinter

Run

you need to run front.py

~ python3 front.py

Getting Started

alt text

Input for this example is:
N = 10 (size of environment)
row = [3,2,2,4,2,1,1,2,3,0]
column = [1,2,1,3,2,2,3,1,5,0]
population = 10 (size of population)
mutation = 15(equals to 15%)

then click start

for see best result you must click on pause then out put will be show in terminal after that you can start to find better result.

An instance of chart for answer (10X10)

alt_text

License

This project is licensed under the MIT License - see the LICENSE.md file for details

by : Shahab Rahnama

About

Solitaire Battleships puzzle with Genetic Algorithm in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages