My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
papercut  
papercut - command line based Rock, Paper, Scissors game
Featured, papercut, koolkit, commandline, unix, linux, BSD, gnu, gpl, RockPaperScissors, Rock, Paper, Scissors, C, game
Updated Apr 13, 2012 by kesara.r...@gmail.com

Introduction

papercut is command line based Rock, Paper, Scissors game for Unix based operating systems like Linux, BSD etc. User can play the game by entering users choice that is either, Rock (R or r), Paper (P or p), Scissors (S or s). Game play is explained in How to play section. papercut also stores user statics. i.e. number of wins, losses and draws.

Current Beta Version: papercut-0.1.1 (beta) download (tar.gz)

How to Play

  • Start the game by executing papercut or papercut [number of rounds] If number of rounds not specified, game will have a standard of 3 rounds. (See Usage section)
  • Make your choice. (Select your wepon)
    • For Rock, enter R or r
    • For Paper, enter P or p
    • For Scissors, enter S or s
  • If you can beat machine's wepon, if both wepons are same game is a draw, other wise you will lose. (Explained in Game Rules section)
  • At the end of game rounds, your current sessions stats and overal stats will be displayed.

Usage

papercut [number of rounds]

(If no number of rounds given, game will have 3 rounds)

Other Command Line Parameters

  • --stat - print user statictics.
  • --help - print help
  • --version - print version

Game Rules

Rules are similer to common Rock, Paper, Scissors game.

  • Rock beats Scissors
  • Paper beats Rock
  • Scissors beats Paper

Change Log

  • 25 - DEC - 2007 Version 0.1.0 (beta)
    • Initial Version
  • 26 - DEC - 2007 Version 0.1.1 (beta)

Get papercut

External links

Copyright (C) 2007 Kesara Nanayakkara Rathnayake

Comment by jon.rafk...@gmail.com, Jan 4, 2008

(n=$(echo $(dd if=/dev/urandom count=200 2>/dev/null | uuencode /dev/stdout | tr -s '[:graph:]' 'spr') | tr -d ' ');echo $n | ./papercut $(expr $(echo $n | wc | awk -F" " '{print $3}') - 1))

Change the 200 in count=200 to play more or less games.


Sign in to add a comment
Powered by Google Project Hosting