Skip to content

AlexAti/lights-out

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lights Out!

A test project that I made to test reagent and figwheel.

I've just made lein new figwheel lights-out -- --reagent

And voilà! A fresh new repo.

Overview

A clone of an old physical electronic game, with more functionality.

Setup

To get an interactive development environment run:

lein figwheel

and open your browser at localhost:3449. This will auto compile and send all changes to the browser without the need to reload. After the compilation process is complete, you will get a Browser Connected REPL. An easy way to try it is:

(js/alert "Am I connected?")

and you should see an alert in the browser window.

To clean all compiled files:

lein clean

To create a production build run:

lein cljsbuild once min

And open your browser in resources/public/index.html. You will not get live reloading, nor a REPL.

This is an educational exercise

So please feel free to comment on the result!

Things I can improve in no particular order

  • The default index.html text
  • The ability to publish in heroku
  • When restarting the counter goes crazy
  • Dont propose a new game when remaining tiles are less than half the board
  • Create a bigger board
  • When the board is very big, tiles go smaller
  • Better layout for the title
  • Animation when jumping level
  • check on github link
  • New tiles that add / remove rows and columns
  • Fixed / blank tiles? Mazes?
  • Fix randomtiles
  • Make legends from behaviours docstrings
  • Comment, refactor, clean the code
  • More intelligence in combination of tile types
  • General design
  • Hints
  • Cheats & bonus
  • 3D?
  • Ability to work offline?
  • Ability to store highscore intersessions? Interuser?
  • Is it easy to make this an app? See React Native and reagent this fall for this
  • Can we generalize it majorly? Core.logic game master?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published