Giter VIP home page Giter VIP logo

wumpus-ogl's Introduction

Wumpus-OGL

A Wumpus AI in OpenGL

This is an Implementation of the Wumpus world with an agent ai and a 3D environment.

The agent seeks the treasure and the wumpus, and after grabbing the treasure and killing the wumpus returns to its starting position to leave the world.

OpenGL Version

OpenGL version 3.3 is needed at least.

The Shaders are also written for GLSL version 330 core.

Keyboard Controls

[f] - Activate/deactivate mouse look / cursor

[l] - Reset camera position

[ESC] - Exit program

Command line arguments

wumpus_ogl "path/to/worldfile" - loads a custom world

Creating worlds

Worlds are organized with JSON text files. Exemplary worlds are in ./saved_worlds.

In a world save there has to be:

  • one agent start position (has to be on (1,1) at the moment)
  • one wumpus position
  • one treasure position
  • variable count of pit positions

Building on Linux

Required tools

  • CMake
  • make
  • g++

Required libraries

  • libx11-dev
  • libxi-dev
  • libgl1-mesa-dev
  • libglu1-mesa-dev
  • libxrandr-dev
  • libxext-dev

On Ubuntu

  • xcursor-dev
  • libxcursor-dev might also be needed

Building on Windows

Required tools

  • MinGW-w64
  • CMake

ES Shader

To use the es shaders instead of the core shaders, change the option with ccmake/cmake-gui.

Other used libraries

It uses GLFW3 and glew as Submodules.

For texture loading LodePNG is used and included.

Additionally is the JSON Format used for world loading. For that the amalgamated version of JsonCpp library is used and included.

wumpus-ogl's People

Contributors

eulcey avatar

Watchers

James Cloos 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.