Coder Social home page Coder Social logo

hexagongame's People

Contributors

foolswood avatar langbenjf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

langbenjf

hexagongame's Issues

Both shards must move.

If either shard has never been moved the "win" message does not come up.

I have checked to see if the types of numbers (ints, floats) set in the positions are different when the maze is set up vs. when positions update, but it looks good to me. I can't spot the problem; although I think it didn't exist previously and has arisen since the "allEqual" function was introduced.

Improve the ghost path

If it was curvier so you could see more of where you'd come from and were going to that'd be good.

Maybe a little marker that moves along it to show you the route would be nice too (must be skippable).

Multiplayer mode

Played with 2 shards on a randomly generated 4 colour 5x5 maze, startpoints [1,1] [3,3].

The player that completes it wins or...
the player that first correctly determines that it is impossible to complete the maze.

Guessing incorrectly results in being eliminated from the round.

So it can play with n players (there's probably a practical fun limit, but it's more than the 2 we have for convenient testing).

May want tweaking slightly, but it seems funish.

Tidy maze files and loading

It's got a bit everywhere, and each file can only have one maze.
They should load from JSON (possibly via AJAX, although that makes it more awkward to test) when running normally.

Saving

Make it so you can download your state via a data url.

Might also be neat to use some of the HTML5 local storage stuff too.

Sorry! - Merged "backwards"

It seems I still don't understand Github.

I was attempting to use a "pull request" to get your updated code onto my version of the project. I appear to have instead put my mazes onto your version.

Maze resetting can return to the menu immediately

When the marker is clicked to return to the start position it doesn't always go there, sometimes it goes to the menu instead.

I suspect this is to do with changing to addEventListener instead of onclick, it'll need some kind of removal code.

Hex colour cycles

Hexes that have a cycle of colours instead of one.

As always with these ideas working out how to draw it in a non-confusing way is the hardest bit.

Shift mode

!No idea if this is interesting!

When you leave a hex you swap colours with it instead of adopting its colour.

Solver can have spurious hops

Solve the maze:

{"maze":["YpWpY","gbrpr","BbG P","rbrpr","RgRgR"],"starts":[[0,1]],"end":[2,0],"startColour":"w"}

The solver will hop around getting back to the beginning so it probably doesn't have that in the list of accessed states.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.