Giter Club home page Giter Club logo

starcraftgeneticalgorithm's Introduction

StarcraftGeneticAlgorithm

Using genetic algorithms Starcraft learns the best build order it can use. (Protoss)

Architecture: https://www.dropbox.com/s/ph7dpsmhb5mhu6a/SCarc.png?dl=0

Flow Overview: https://www.dropbox.com/s/pxxwkhbh5twtmzk/SCoverview.PNG?dl=0

You can enjoy a demonstration video here: (press to watch)

screenshot

Minimal Requirements to run:

•	CPU:		Intel CPU Pentium III.

•	GPU:		Geforce 6200 LE / Radeon Xpress 1200 Series.

•	RAM:		8GB

•	HDD Space: 	64GB

Installs you have to do before you start:

-	JAVA JDK 8th edition – in both main PC and the Virtual Machines.

-	Oracle Virtual Box (and open 2 Virtual Machines).

-	Windows 7 (or above) for both Virtual Machines.

-	Starcraft: Brood War version 1.16.1 in both Virtual Machines.

-	BWAPI version 4.1.2, download here - https://github.com/bwapi/bwapi/releases/tag/v4.1.2

-	BWTA version 2.2, instructions here - https://bitbucket.org/auriarte/bwta2/downloads

-	Tournament Manager, instructions to install are here - http://webdocs.cs.ualberta.ca/~cdavid/starcraftaicomp/tm.shtml

Important – compile the source code and check that you have both server.jar and client.jar
Put the client folder inside both Virtual Machines in the StarcraftAI/tournamentManager folder.

How to install: Main PC:

•	Organize your directory library like that:

o	C:/StarcraftAI/

	BWAPI 

	BWTAlib_2.2

	TournamentManager

•	Set these environment variables:

o	BWAPI_DIR = “C:\StarcraftAI\BWAPI”

o	BWTA_DIR = “C:\starcraftAI\BWTAlib_2.2”

o	Add to your path:

	“; C:\starcraftAI\TournamentManager\server”

•	Server Settings:

o	Unzip bots.zip into the server\bots directory.

o	Replace server.jar with the one we provided, since we had to make some changes to the way the server works.

o	Replace Server_settings.ini with the one we provided.

•	Edit Properties.ini

o	Player_one_ip – enter the ip of the #1 Virtual Machine.

o	Player_two_ip – enter the ip of the #2 Virtual Machine.

o	Player_one_username – enter the username of the #1 Virtual Machine.

o	Player_two_username – enter the username of the #2 Virtual Machine.

o	Player_one_password – enter the windows password of the #1 Virtual Machine.

o	Player_two_password – enter the windows password of the #2 Virtual Machine.

Virtual Machines:

•	Install StarCraft: Brood War version 1.16.1, installation path should be C:\Starcraft\

•	Run BWAPI/ChaosLauncher/chaoslauncher.exe, in the settings tab change “installpath” to “C:\Starcraft\”.

•	Put “libgmp-10.dll” and “libmpfr-4.dll” in your windows folder, you will find these DLL files in your BWTAlib2.2/windows folder.

•	Edit C:\StarcraftAI\TournamentManager\Client\Client_Settings.ini:

o	Server Address (line 33) – type your Main PC IP address.

•	Install BitVise Server – instructions here - https://www.bitvise.com/ssh-server-download

How To Run:

After all the installations and configurations have been made, open up both of the virtual machines and make sure BitVise server is up and running. Now open command prompt as an administrator, and in the main directory execute this command: java –jar evolution.jar -file "%Project_Path%/src/starcract.params"

Have Fun!

https://www.dropbox.com/s/x87b7cg6lihyegu/SCdemo.jpg?dl=0

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.