Giter VIP home page Giter VIP logo

capstoneproject's Introduction

Introduction Video and Gameplay Introduction

Watch Video

Go to the YouTube Link: https://youtu.be/UstsXwr34ws.

Play the Game

  1. install python3 in your computer;
  2. open the command line of your computer, use git clone https://github.com/Cyuhaohao/CapstoneProject.git to clone the code to your local;
  3. use command cd CapstoneProject to enter the directory of the game
  4. install required package like pygame. You can use command pip install -r requirements2.txt;
  5. run python3 Playgame.py to start playing the game;

Tutorial to Replicate The Result and Play the Game

All the code can be run on Mac. Not sure whether it's adaptable on Windows.

You need to clone the repo to local and run the following commands for different tasks.

For Gameplay

Play the Game [Part for the class]

  1. install python3 in your computer;
  2. open the command line of your computer, use git clone https://github.com/Cyuhaohao/CapstoneProject.git to clone the code to your local;
  3. use command cd CapstoneProject to enter the directory of the game
  4. install required package like pygame. You can use command pip install -r requirements2.txt;
  5. run python3 Playgame.py to start playing the game;

Analyze the efficiency of different Game AIs

  1. run python3 Gamecopy_AISimulation.py.
  2. run python3 Playgame.py 1 to enter supervisor's mode where you can see the whole map and the trace of AIs.

For Creature Generation

Data Preprocessing

  1. use ./setup.sh to install the necessary package;
  2. download the dataset of images of animals, which can be found through link https://www.kaggle.com/alessiocorrado99/animals10;
  3. run python3 seg.py 1 1 to do the data preprocessing.

DCGAN Training

  1. have the preprocessed images, you can also access it by: https://drive.google.com/file/d/19jHdSa-W4SCvqRWt5i1DKWAAbJfjh2Go/view?usp=sharing;
  2. open DCGAN_CP_Final.ipynb with google colab;
  3. upload the datasets;
  4. run the code blocks one by one.

capstoneproject's People

Contributors

cyuhaohao avatar

Watchers

 avatar

capstoneproject's Issues

NOT WORKING🤬😡

Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/mario/PycharmProjects/pythonProjects/mario/mario16.py", line 802, in
main(map_generation=["myway","dungeon"][int(map_choose)-1], cover="on", ai=None)
File "C:/Users/mario/PycharmProjects/pythonProjects/mario/mario16.py", line 543, in main
music = pygame.mixer.Sound("game_resources/bgm.wav")
FileNotFoundError: No such file or directory.

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.