Skip to content

GregoireHENRY/AI-UFOs-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-UFOs installer

Introduction

The official AI-UFOs multi-platform installer. Game based on the CodInGame Thales Hackathon. Follow the instructions in the section Setup concerning your platform. Once installed correctly, read the How to play section before playing.

Setup

Open the folder corresponding to your platform.

Windows users

There are four folders:

  • AI-UFOs/ is the game folder
  • Lzz/ is a tool to write C++ header automatically
  • mingw64/ is a C++ compiler
  • SFML/ is the graphic library

You can move your game folder where ever you want but you need to keep the two folders AI-UFOs/ and SFML/ in the same folder as they are presented here. You can rename the toplevel Windows/ folder, the game and SFML juste need to communicate each other.

Lzz - Lazy C++

Move the executable file lzz.exe to your computer system folders and add its path to your environement system variables.

Check if the Powershell command is available:

lzz -ver

You might need to relaunch your Powershell.

For further informations, please visit the website.

MingGW - The C++ compiler

As SFML has been written and compiled with the MingGW 7.3.0 64-bit version, you need to get this exact compiler to play the game.

Please move the mingw64/ folder to your computer system folders, just like you did for Lzz/ and make sure to add the mingw64/bin/ folder path to your environement system variables.

Thus, you should have access to the g++.exe compiler and the mingw32-make.exe makefile.

Check the version of both commands in your Powershell with:

g++ --version

and

mingw32-make --version

For further informations, please visit the website.

SFML - The graphic library

You have nothing in particular to do except to make sure to keep the folder structure with AI-UFOs/.

The game has been compiled with the SFML version GCC 7.3.0 MinGW (SEH) - 64-bit.

For further informations, please visit the website.

Linux users

There are two folders:

  • AI-UFOs/ is the game folder
  • Lzz/ is a tool to write C++ header automatically

Install the graphic library SFML by following the tutorial.

Lzz - Lazy C++

Move the file lzz to your computer system folders and add it to the PATH.

Check if the command is available:

lzz -ver

MacOS users

There are three folders:

  • AI-UFOs/ is the game folder
  • Lzz/ is a tool to write C++ header automatically
  • SFML/ is the graphic library

Please contact theo.mercurio@ipsa.fr to complete the installation.

Lzz - Lazy C++

Move the file lzz to your computer system folders and add it to the PATH.

Check if the command is available:

lzz -ver

For further informations, please visit the website.

SFML - The graphic library

Install the graphic library SFML by following the tutorial.

How to play

The game is a 2 VS 2 UFOs fight with artificial intelligence. You have to improve the given code to control your two UFOs to improve their intelligence. To win the game, you have to bring more flags to your base than your opponent. You loose a flag if you get collided with less velocity.

To play:

  • edit the code user.AI in the game folder

  • compile it to implement your updates to the game with the make command in the game folder. For Windows users:

    mingw32-make

  • if there is no mistake in your code, you can run AI-UFOs to observe your results!

Dimension:

  • board 10000x8000
  • base width 1000

Physic properties:

  • ground has tiny friction
  • UFO collisions are solid
  • wall collisions are elastic