Coder Social home page Coder Social logo

chicken-roulette's Introduction

chicken-roulette

Small adaption to the roulette from South Park - American Economics.

Sounds and video are adapted from the original South Park series. All credits belong to them.

Description

This little game shows a video from YouTube. Pressing any key stops the video and starts the game. The game shows a headless chicken running spawning and running randomly on the board.

Yes, you have to press any key. The awesome pyglet documentation does not describe how to stop a video and keep the app running.

Usage

The tool expects many command-line arguments:

  1. rows: number of rows on the board
  2. cols: number of columns on the board
  3. names*: place any number of names / numbers, which should appear on the board

rows*cols must match the number of names.

Example:

$ python chickenrun.py 2 2 Alice Bob Charly Trudy

Chicken

chicken-roulette's People

Contributors

n2o avatar

Watchers

 avatar  avatar

chicken-roulette's Issues

Can't run. Got Error.

Can't run. Got error. I've tried to use python 3.5 3.6 3.7. No result.

Traceback (most recent call last):
  File "chickenrun.py", line 151, in <module>
    pyglet.app.run()
  File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyglet\app\__init__.py", line 107, in run
    event_loop.run()
  File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyglet\app\base.py", line 169, in run
    timeout = self.idle()
  File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyglet\app\base.py", line 245, in idle
    window.dispatch_event('on_draw')
  File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyglet\window\__init__.py", line 1352, in dispatch_event
    if EventDispatcher.dispatch_event(self, *args) != False:
  File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyglet\event.py", line 408, in dispatch_event
    if handler(*args):
  File "chickenrun.py", line 125, in on_draw
    play_movie()
  File "chickenrun.py", line 74, in play_movie
    player.eos_action = player.EOS_STOP
AttributeError: 'Player' object has no attribute 'EOS_STOP'

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.