Coder Social home page Coder Social logo

cabbagecabbagecabbage / uno Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abehniwal/uno

0.0 0.0 0.0 5.31 MB

Online multiplayer UNO clone built with Node.js and Socket.IO

Home Page: https://uno-nr5m.onrender.com

JavaScript 91.21% CSS 7.35% HTML 1.45%

uno's Introduction

This fork was created for deploying the app.

UNO

A card game based on the original UNO.

Created by Amanbir Behniwal and Rayton Chen for the ICS4U FSE using

  • HTML
  • CSS
  • JavaScript (Node.js)
  • Express
  • Socket.io
  • SWAL2

We do not own the images used in this project.

To visit the original GitHub repository, go to https://github.com/ABehniwal/UNO

To play the game, visit https://uno-nr5m.onrender.com

Rules

  • You need a minimum of 2 players to play and can play with a maximum of 10 players.
  • To play a valid card, it must be the same colour or number as the current card on the board. You can also play a wildCard and draw4WildCard whenever you want.
  • If you have only 1 card and someone clicks the UNO button before you, two cards from the deck will be drawn for you.
  • If you have a playable card, you must play it. Similarly, if you draw a playable card, you must play it.
  • Every card that is played by the players is put in the discard pile. Once the deck is empty, the discard pile is shuffled and put into the deck.
  • The first player to get rid of all their cards wins.
  • If a player leaves and it was their turn, their turn will get skipped and the same current card will be shown to the player who's turn was after the player who left. If it was not the turn of the player who left, then the game will simply continue as is without that player.
  • If there is only 1 player left in a room, that player wins.

How To Play

  • The app will prompt you to enter your name/nickname at the start, which will be seen by all other players. The app will retain this name for 24 hours before it asks you to enter it again.
  • Once there are at least 2 players in the game, a 10 second timer will start before the game starts. If another player joins within these 10 seconds, the timer will restart.
  • You must click on the card you wish to play.
  • Click on the backside of the UNO card to draw a card.
  • Click the UNO button when you see someone is down to 1 card.
  • If you have only 1 card left, try to click the UNO button before anyone else can. If you manage to do this, you will be 'safe' and can't get UNO called on you unless your hand has more than 1 card at any other point in the game.
  • Once you click a wild card you must play it. You will have the option to choose any colour you want to change the current colour of the board to. You are also aloud to keep the same colour as is currently on the board.
  • If you play the skipTurn card, the next players turn will be skipped.
  • If you play the reverseTurn card, the order of the players will be switched and will go in the opposite direction. (It will now be the turn of the player before you rather than the player after you.)
  • A player list on the right shows you the player usernames and the arrow indicates who's turn it is and in which direction the game is going.
  • Once a game in a room has started, anyone else who wants to play will be moved to the next available room and will wait until there are at least 2 people in the room.
  • There is a maximum of 10 rooms available. If no rooms are available, you must wait until the game ends in a room before you can play.

uno's People

Contributors

cabbagecabbagecabbage avatar abehniwal avatar

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.