Play width a computer

To win, you have to hit fields contains ships faster than enemy.

The computer's table

Your table

To play, first draw ships

Game result

Competitor's ships number:

Computer's hits:

Player's hits:

Winner:

Round results (5 games)

Player's wins:

Computer's wins:

Draws:

Games number:

The final winner:

Notice:
It seems, you wrote down far small number of ships to set. The number of ships must be higher than 0. Please correct the number...

Notice:
It seems, you wrote down far high number of ships to set. The number of ships must be smaller or the same as fields number, it could lead to sea accidents.
Please set smaller number, so ships has more area...

The Miss, try still. Now it's computer's turn...

Well done, You have hit enemy ship, lucky you...

All fields are empty, please draw fields again

Ugh... you clicked the field before, choose again

To continue the round, press OK, or end the game/round.

Notice: The end of the round. To start again press OK.

Project: "Ships game"

???

I've used EcmaScript modules for the first time to write down the game. It is very nice and convienient as writing a code, but I think Webpack is more convienient still. I must confess, I had a problem width connection between files in the project, it seems easy but isn't. The game is very complicated, and the code is quite vast. Have a nice fun.

information