Giter Site home page Giter Site logo

gouri-panda / pig-game Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 29.0 6.07 MB

Pig-game(ludo) has is a classic board game played between friends and family. Play the dice game of kings! Recall your childhood!

Home Page: https://gouri-panda.github.io/Pig-game/

License: MIT License

JavaScript 46.18% HTML 17.15% CSS 36.66%
javascript-game javascript html css webapp hactoberfest2020 hactoberfest-accepted website open-source programming

pig-game's People

Contributors

aanchal-fatwani avatar alexresiga avatar amitupadhyay368 avatar amoghrajesh avatar aritrochakraborty29 avatar deepaksahu-bot avatar edilson avatar fergusyip avatar frankie-b avatar gouri-panda avatar hauze-v avatar i-ze avatar inglorious-ratbastard avatar jiyoungsin avatar lucid-dreem avatar mendoc avatar nicholasactran avatar philippebarre avatar sahooritesh avatar shanmukhkalasamudram avatar shubhraagarwal avatar slkshatriya avatar stanjdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pig-game's Issues

Set different score goals

Instead of 100, it would be cool to be able to set different score goal, having it be user inputted before the game begins.

License

Hey panda, I noticed a copyright watermark, however, I could not find an actual license. Would you consider giving this project a license? Like MIT?

Update Readme file

A Readme file is the documentation of the repository. Update the readme file with the repository info.

  • Add Screenshot of the web
  • How to set up the project with IDE.
  • Contribution guidelines.

Play agains AI

Add basic AI for 1 player mode (or maybe later we can add more AI players to the same game).
Let's just start with a very basic solution which can be improved in the future.

Save the user's theme choice

When you choose the theme in dark mode, the app does not keep it after refreshing the page. I want to save the user's choice in cookies.

Players should choose their name

Now App only shows player 1 and player 2

  • Expected Behaviour
    Players choose their name
    When a player wins it should show their name with the winner message.

Create more than two player

Right now we have only for two players. It would be better if add more than two players.

  • Expected behavior
    Users can select how many players they want to play with it.

End the game when a winner is reached and reset winner flag on new game

Right now, the game continues after a winner has been reached. Furthermore, the winner flag carries over into the new game, so the winner of the previous game will start off highlighted.
Proposal:

  • End the game after a winner has been reached
  • On new game, reset the winner flag after pressing new game

Keypad controls

I want to add keypad controls :

  • Space : Roll dice
  • Enter : Hold score
  • Escape : New game

App should show highest score

When the game finishes or the current score is greater than the highest score then the web app should show the highest score.

Game Instructions

The more I read the Game Rules, the more I am confused. I still do not understand what a GLOBAL or ROUND score is. Since I do not understand this, how will the user, I would like to make this more user friendly to understand. Would playing the game help me understand this? Or can someone please explain this to me ?

Add copy right in all files

Add copyright files in all HTML , js and CSS files
It should be above the file

MIT License

Copyright (c) 2020 Gourishankar panda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The alt text reads Dice instead of the dice face...

The default alt text has been set to "Dice", it should be showing the dice face, because even if the image dosen't load, people will still be able to see the die they rolled and it will also help people using screen readers.

Add dark theme in app

Right now we have only a light theme. In order to. improve the user experience we should add both a dark theme and a light theme.

  • Expected behavior
    Users can select both a light theme or dark theme by a toggle switch

Have different possible dice

There are a few possible choices for dice:

  • 4 sided
  • 8 sided
  • 10 sided
  • 12 sided
  • 20 sided

Would need to implement:

  • Feature to switch dice
  • Visual change when dice type is switched

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.