Git Product home page Git Product logo

cobra's Introduction

Cobra

A Nibbles-like clone written in Python. There is a computer-controlled opponent enabled by default. The opponent can be disabled by setting "OPPONENT_ON" to "False".

A browser-playable version is now available using CodeSkulptor. It can be found here: https://py3.codeskulptor.org/#user302_59hMUyi94v_7.py. To play, click the run button at the top left, click inside the blank box on the new window to focus it, then press the space bar to begin the game.

The game will begin as soon as execution starts. Arrow keys are used for movement. The red rectangle is the player and the yellow rectangles are food. With each piece of food eaten another segment is added. The game ends when the player or opponent runs into the border, a segment of their body, or a segment of the opponent's body.

cobra's People

Contributors

bcrew1375 avatar

Watchers

 avatar

cobra's Issues

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.