Giter VIP home page Giter VIP logo

saisandbox's Introduction

SAISandbox

"Semi" artificial intelligence sandbox

Challenge

Decide which team is the winning team and then just implement the code so that your team wins! Best solutions wins the ticket to Star Wars premiere on the 14th of December at Finnkino Tennispalatsi!

Deadline

Deadline for the challenge is on the 8th of December 2016.

How to apply?

Fill your contact information in Google Form and fork this repository. Create a pull request after you've finalized your code before deadline. You will be contacted on the 9th of December 2016.

Factions

BrownRebelScumbagWithLaser aka Brown

WhiteManWithLazer aka White

Rules

You can only modify challenge.py from this repository. Change the winning team of your choice by changing value of WINNER variable using enums defined TEAMS (WHITE or BROWN).

The run method from a chosen team will be run on every loop on the main loop.

The team that should lose will stay put for the whole game.

Methods

You can check the methods from models.py for more information. Basic methods that you can use are:

  • move_left
  • move_right
  • move_up
  • move_down
  • shoot

All of the move methods will return False if there is an obstacle.

Setup

  1. Install git
  2. Install python 2.7.x
  3. Install python pip
  4. Install pygame
  5. Clone repository
  6. run command cd SAISandbox ; pip install -r requirements.txt

Run game

Use following command python game.py and the game will automatically end after one of the teams are dead. The game will print to terminal "You win" or "You lose" depending if the team you decided to win actually won.

saisandbox's People

Watchers

James Cloos avatar  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.