Giter Club home page Giter Club logo

paperscissorsrock's Introduction

PaperScissorsRock

Paper, scissors, rock (if you're Matt) ie. rock, paper, scissors for everyone else.

I assume most people are familar with the rules of rock, paper, scissors but if not here are the basics: rock crushes scissors, paper covers rock, scissors cuts paper

This game can be played as a normal 2 players game or if any even number of players greater than 2 play it will work as a knockout tournament.

Once the game begins there will be a countdown of paper, scissors, rock, GO!. The players will then have a couple of seconds to enter their choice. The players choice and the result of the match will then be shown to each client.

If this is a tournament game all matches are played at the same time with all the match results shown after.

If any draws occur during these matches the players involved will play rematchs to resolve the draws. Once all draws are resolved the round will end and round results will be shown to see who progresses. Play will continue like this until only one player is left.

Installation

Clone this repo

How to start

Server

Load the paperScissorsRock.q file into q eg. q paperScissorsRock.q This will use port 15000 by default but can be changed within the file.

Client

Players should then hopen to the server port from a q session eg. q)h:hopen `::15000

Game On

Once all players are connected the game can be started by either running q)janken[0b;players] on the server or a player can type "start" on their client side.

paperscissorsrock's People

Contributors

squigley93 avatar

Watchers

 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.