Giter Club home page Giter Club logo

freeciv-editor's Introduction

Scenario Generation for a 2D Videogame using Logic Programming

Powered by Lua Made by Löve Clingo Solver ASP-Core 2 language Build Status Coverage Status license

The goal of this project is building a declarative tool for the creation and manipulation of scenarios and maps in the videogame FreeCiv, a turn-based strategy game between multiple players that it is played on a two-dimensional grid map.

The ultimate purpose is to achive, as far as posible, that the generation of scenarios is guided by a set of rules, expressed as constraints in logic programming, in such a way that the user can vary sustantially the configuration of the scenarios obtained in according to the representation of the problem in terms of a logical program. Given its suitability for problem solving, the logical programming paradigm to be used is Answer Set Programming.

Installation

First of all, install these dependencies on your machine:

  • Clingo 5.2.5
  • Lua 5.3
  • Love2D 11.0

If you have a Ubuntu distribution installed on your machine, execute this in a terminal in order to install all dependencies:

sudo add-apt-repository ppa:bartbes/love-stable
sudo apt-get update && sudo apt-get install gringo clasp lua5.3 love

Afterwards, just clone the repository wherever you want it. Then just execute this in a terminal:

make run

Specs

This project uses busted for its tests. If you want to run all the tests, you will have to install busted first. Then just execute the following:

make test

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.