Code Monkey home page Code Monkey logo

fyp's Introduction

Installing
	These instructions are for the Fedora 24 OS I have installed on my Oracle VM VirtualBox. Terminal commands are in quotes.

Basics
	Make sure you have Python 3 installed and also for installing dependencies I have used pip3.
        Run "sudo dnf install python3-pip" 
        Also make sure you install git: "sudo dnf install git"

Python dependencies
        "pip3 install numpy" (used for random number generating)

Install Pygame
        Pygame dependencies
        "sudo dnf install mercurial libfreetype6-dev libsdl-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev 
        libavformat-dev libsdl-mixer1.2-dev libswscale-dev libjpeg-dev"

        Then install Pygame itself
        "pip3 install hg+http://bitbucket.org/pygame/pygame"
        
        See website if encountering any issue. https://www.pygame.org/wiki/GettingStarted#Pygame%20Installation
        Any issues I had were down to missing libraries, please ensure you have everything installed.

Install Pymunk
        We want version 4, this is written for Python 2 so we need to adjust a couple of things.
        
        Navigate back to your home or downloads directory
        "wget https://github.com/viblo/pymunk/archive/pymunk-4.0.0.tar.gz"

        Unpack it
        "tar zxvf pymunk-4.0.0.tar.gz"

        Update pymunk to use python 3, first navigate to the pymunk directory
        "cd pymunk-pymunk-4.0.0/pymunk"

        Then run
        "2to3 -w *.py"

        Next we need to install it
        "cd .. python3 setup.py install"

        See website if encountering any issues. http://www.pymunk.org/en/latest/

Running
        If everything installed correctly then navigate to the folder with my FYP files and run
        "python3 joshTest.py"

fyp's People

Contributors

joshuahetherington avatar

Watchers

 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.