This game is so addictive - it tests your speed, logic and skill - it’s a race against time….
I built this from scratch in 10 days using vanilla JS and CSS. It's really fun to play. Below is a demo and instructions. See if you can finish with just one marble remaining in the centre of the board - there is a 1,000 point bonus if you can do it! 😄
Aim of the game Take away as many marbles as possible in the 100 seconds countdown.
How to take away marbles Select a marble by clicking on it so it turns blue, then place it over an adjacent marble into an empty space. The marble you move over will be taken. To deselect a marble, click on it again so it turns from blue to gold. See the demo above ⬆
Scoring Each marble removed updates the score by the total marbles taken multiplied by the total seconds remaining. Eg, 20 marbles taken in 40 seconds scores 800. Finish the game at any time to submit your score to the Leader Board.
Bonus points If you finish with just one marble remaining, which is 'Solitaire', you get a bonus 500 points, and if your last marble finishes in the centre of the board the bonus is 1,000 points!
Features 💡
Built from scratch with Vanilla JavaScript and CSS; no front-end frameworks or libraries like React, Vue etc...
Completely responsive and mobile friendly
Includes Help section and Leader board
Scores are saved on the back-end with Google Firebase
Hi @DynamicSquid, that's great - thanks for explaining and for the link. I read the advice on stackexchange.com and appreciate the reasons for using uppercase. I've changed my README.md to uppercase now. Do you have any other suggestions for improving my project?
@rjlevy no not really this project is perfect! oh quick question though, what does the linguist-vendored in .gitattributes do? haven't seen that before
@DynamicSquidlinguist-vendored in .gitattributes gets Github to display the language you want to assign to a repo. In this case, I want the game to appear as JavaScript repo.
Without it Github shows percentages for HTML, JS and CSS for this kind of repo.
🚀 [GAME] Play SOLITAIRE!!! another awesome game! 🚀
This game is so addictive - it tests your speed, logic and skill - it’s a race against time….
I built this from scratch in 10 days using vanilla JS and CSS. It's really fun to play. Below is a demo and instructions. See if you can finish with just one marble remaining in the centre of the board - there is a 1,000 point bonus if you can do it! 😄
⚡ Solitaire ⚡
Links 🔗
Demo 🏁
https://github.com/rolandjlevy/js-solitaire-game/blob/master/images/solitaire-demo-large.gif?raw=true
How to Play 👉
Take away as many marbles as possible in the 100 seconds countdown.
Select a marble by clicking on it so it turns blue, then place it over an adjacent marble into an empty space. The marble you move over will be taken. To deselect a marble, click on it again so it turns from blue to gold. See the demo above ⬆
Each marble removed updates the score by the total marbles taken multiplied by the total seconds remaining. Eg, 20 marbles taken in 40 seconds scores 800. Finish the game at any time to submit your score to the Leader Board.
If you finish with just one marble remaining, which is 'Solitaire', you get a bonus 500 points, and if your last marble finishes in the centre of the board the bonus is 1,000 points!
Features 💡
Wow ok this is awesome!
Hey @DynamicSquid, thanks!!
@rjlevy wait... is that a
README.md
file in lowercase letters????@DynamicSquid yes, why - do you prefer uppercase?
@DynamicSquid yes, why - do you prefer uppercase?
@rjlevy I mean, a lot of high reputation users on Software Engineering say so: https://softwareengineering.stackexchange.com/questions/301691/readme-txt-vs-readme-txt
Hi @DynamicSquid, that's great - thanks for explaining and for the link. I read the advice on stackexchange.com and appreciate the reasons for using uppercase. I've changed my
README.md
to uppercase now. Do you have any other suggestions for improving my project?@rjlevy no not really this project is perfect! oh quick question though, what does the
linguist-vendored
in.gitattributes
do? haven't seen that before@DynamicSquid
linguist-vendored
in.gitattributes
gets Github to display the language you want to assign to a repo. In this case, I want the game to appear as JavaScript repo.Without it Github shows percentages for HTML, JS and CSS for this kind of repo.
More details here: https://github.com/github/linguist#vendored-code