Skip to content

FlorianeEnnaji/Lemmings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Lemmings

VI51 Project - UTBM student project

Artificial Intelligence for lemmings based on Q-Learning, multi-agent approach.

Authors : ENNAJI Floriane, GOMEZ Lucille, THIBAUD Romain, WALTZ Antonin

##Resources needed

##Before running

##Execution There're two ways to execute the application :

####Learning mode It will create a QTable that will be used in the auto-playing mode.

To enable it, go to Game.java and ensure that main function looks like following :

		/*
		 * Comment following if you want to play
		 */
		
		
		launchLearning(worlds, 3);


		/*
		 * Uncomment following if you want to play
		 */
		
		/*Random rand = new Random();
		int worldNb = rand.nextInt(worlds.length);
		
		File file = new File(worlds[worldNb]);
		BufferedImage image = ImageIO.read(file);
		env = new Environment(image);
		QTable qt = getQTableFromFile();
		env.setQTable(qt);
		
		new Launcher(env);*/

####Auto-playing mode It consists in letting Lemming use the QTable to live in the world. To enable it, ensure that main function looks like following :

		/*
		 * Comment following if you want to play
		 */
		
		
		/*launchLearning(worlds, 3);*/


		/*
		 * Uncomment following if you want to play
		 */
		
		Random rand = new Random();
		int worldNb = rand.nextInt(worlds.length);
		
		File file = new File(worlds[worldNb]);
		BufferedImage image = ImageIO.read(file);
		env = new Environment(image);
		QTable qt = getQTableFromFile();
		env.setQTable(qt);
		
		new Launcher(env);

About

VI51 Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages