Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.56 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.56 KB

Getting started (Windows)

  1. Install leiningen
  • Download leiningen-2.0.0-preview10-standalone.jar from https://github.com/technomancy/leiningen/downloads into e.g. c:\dev\bin
  • Create lein.bat in you path with the following line: @java -cp c:\dev\bin\leiningen-2.0.0-preview10-standalone.jar clojure.main -m leiningen.core.main %*
  1. git clone http://github.com/anders88/sweeper_game.git
  2. cd ...\sweeper_game
  3. lein run
  4. Go to http://localhost:1337

Getting started (Linux)

  1. Install leiningen
  1. git clone http://github.com/anders88/sweeper_game.git
  2. cd ...\sweeper_game
  3. lein run
  4. Go to http://localhost:1337

Playing

  1. Download a starting point from https://github.com/jhannes/minefield-solver
  2. Go to http://localhost:1337
  3. Enter a username and press Register
  4. Change the userid in the application to what you were given by the application
  5. Run the program
  6. Change the program

Administrative functions (optional)

Adminconsole can be used to restart the game without restarting your server. If you're running the server on your laptop, you problably don't need it (You just restart your server). You start the server with:

lein run start <setupfile>

The setupfile must point to a file with the following structure password-file= mode=<:dev or :prod> secured=true

To generate your password you run

lein trampoline run setPassword <setupfile>

This will prompt for a password and store this.