Giter Site home page Giter Site logo

unniisme / gamedevchallenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 124 KB

A set of simple game design problems that can be solved in any language.

License: The Unlicense

Python 99.75% C++ 0.25%
game-development gamedev problemsolving python c cpp csharp java

gamedevchallenge's Introduction

GameDevChallenge

A set of simple game design problems that can be solved in any language.

You do require python, and numpy and pygame modules installed to run the test cases though. Pre-requisites installations, linux:

$ sudo apt install python3
$ sudo apt install python3-pip
$ pip3 install numpy
$ pip3 install pygame

windows
Refer to WSL.md

Any other OS
If you're using anything else I assume you know what you're doing


The challenge directory contains 4 questions in the following order of increasing difficulty

  1. SimpleTarget
  2. 2limbIK
  3. HideSeek
  4. Gridrunner

Each problem statement involves a [challenge name]_test.py file which will embed the user solution to the file and simulate a game environment.
User solution has to be an executable that communicates via stdin and stdout, the specifications of which will be provided with the problem statement. Do note that the solution file has to be in a while-True loop so that it can be queried indefinitely. More details about the game and the problem statement are each directory.

You can run the test file with your user solution using the following format:

$ python3 [challenge name]_test.py solution_executable

for example, if your solution is a python3 file called soln1.py, it can be executed using

$ python3 [challenge name]_test.py python3 soln1.py

If it is a c or c++ file, first compile it into an executable, then execute it.

$ g++ soln1.c++ -o soln1
$ python3 [challenge name]_test.py ./soln1

Any other languages can be compiled in a similar format.


The source codes to all the test games are in the directory as well. It will not help you much to solve the problem statements as the problem statements are independant of the actual implementation of the games, but feel free to tweak around.

For more details you can contact the YACC game dev heads.

Oh and I was high on life problems while writing a lot of this code so if you find any bugs ping me
-Jyo

gamedevchallenge's People

Contributors

unniisme 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.