Skip to content

AlexTheMagnus/cypress-battleship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cypress-battleship 🛥️💥

Table of contents

Installation

Clone this repo and run yarn inside the project folder to install the dependencies.

Usage

Default game config

  1. Run yarn cypress-battleship to launch the project.
  2. Then select the difficulty level on the Cypress interface.
  3. The Cypress script will create a game and it will wait you to be ready.
  4. Go to the game link displayed on the Cypress interface.
  5. Choose your boats position and click on the "Play" button.
  6. Enjoy your game :)

Custom game config

  1. Go to http://es.battleship-game.org.
  2. Set the game settings as you prefer.
  3. Choose your boats position and click on the "Play" button.
  4. Run yarn cypress-battleship --env gameUrl=<YOUR_GAME_URL> replacing <YOUR_GAME_URL> by your game URL.
  5. Enjoy your game :)

Uninstall

All dependencies are installed locally. So, in order to uninstall the project just delete the folder.

About

A Cypress script that plays battleship 🛥️💥

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published