Skip to content

mahimdashora/UNO-org

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNO Multiplayer

UNO_Logo

Uno Game Setup Guide

This guide provides step-by-step instructions to set up and run the Uno game.

Step 1: Define Player Names

Open the main.go file and define player names in the players slice.

// Example:
// players := []string{"Player1", "Player2", "Player3"}

Step 2: Run the Uno Game

  1. Navigate to the cmd/uno directory.
  2. Run the main.go file.
cd cmd/uno
go run main.go

Step 3: Connect to the Server

Install wscat package

Windows:

  • Install Node.js
  • Open Command Prompt as an administrator.
  • npm install -g wscat

Mac:

  • brew install node
  • npm install -g wscat

Ubuntu:

  • sudo apt-get update
  • sudo apt-get install nodejs npm

To connect to the server port, use wscat with the following command:

wscat -c ws:https://localhost:8080/ws
  • Replace 8080 with your specific port number if needed.
  • Enter the player name correctly when prompted.
  • Wait for your turn to play.

Use commands

  1. playcard <cardIndex> <NewColor> to play and arg is valid only for WILD and DRAW_4
  2. showcards to see cards in hand and their index
  3. topcard to see top card which was last played in the game deck

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%