Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Unity game where the player has to collaborate with AI to solve puzzles by merging and splitting shapes
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Assets
Library
ProjectSettings
Temp
WebOutput
WebOutputFinal
hooks
info
AGA1-csharp.sln
AGA1.sln
AGA1.userprefs
Assembly-CSharp-Editor-vs.csproj
Assembly-CSharp-Editor.csproj
Assembly-CSharp-Editor.pidb
Assembly-CSharp-firstpass-vs.csproj
Assembly-CSharp-firstpass.csproj
Assembly-CSharp-firstpass.pidb
Assembly-CSharp-vs.csproj
Assembly-CSharp.csproj
Assembly-UnityScript-vs.unityproj
Assembly-UnityScript.pidb
Assembly-UnityScript.unityproj
Final_Limboless.unitypackage
HEAD
Level2Done.unitypackage
README.md
Scene2AllDone.unitypackage
Secene1Complete.unitypackage
config
description

README.md

Shapes

This is a Unity3D game where the player has to collaborate with AI to solve puzzles by merging and splitting shapes. In this game, we have implemented an Autonomous Companion Character that Learns From Humans. The game is playable at murlax.com/shapes (requires Unity Player for browser)

The main AI file is the AIMemoryScript.js file. This is contained in the Scripts folder which contains all the JavaScript files for the project.

Overview of AI

The player can teach 4 actions to the AI - Merging, Splitting, Fountain of Life, Fountain of Death. When the AI reaches a smart object (such as a door or a puzzle that requries a shape to be matched), it provides the AI with some exit conditions. This is put into a behavior tree that the AI uses to generate possible nodes that have this exit as its postcondition. If any of these nodes match with the current world state, the AI spits out the path from this node to the exit as a possible option. If not, we generate more nodes and go upto a max depth of 20 and display a maximum of 10 options. The player chooses one of these options and the AI executes all the steps that it can (such as going to a fountain). If there are options to be executed by the player, the AI simply follows the player.

Something went wrong with that request. Please try again.