Giter Site home page Giter Site logo

logic-in-catan's Introduction

Logical Modelling in Settlers of Catan

Logo

About

This project was done as a part of CISC204 - Logic in Computing Science at Queen's University in fall of 2020 by Barrett Arbour, Cameron Beaulieu, Jimmy Lu, and Brandon Ye. Using techniques in propositional and predicate logic, we seek to model and solve a hypothetical problem faced in a slightly altered game of Settlers of Catan.

Project Summary

Given a certain board state in Settlers of Catan, where we know which tiles of a certain resource type (wood, sheep, wheat, and brick) are connected to which other tiles, as well as the set of resources S needed to be gathered in order to win the game, we would like to determine if there exists a winning branch with k or lower steps (that is, a size of k-1 or lower). We will take as input a series of implications defining the board state, the set of required resources, as well as the maximum possible value of k we would like to consider.

Usage

After installing the NNF python library with pip3 install nnf, running run.py will build logical model and test for a solution using the information specified in the variables givenBoardCondition, S, and k.

Learn More

A powerpoint file thoroughly detailing the full project and development process can be found in documents/final/modelling_report.pptx

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.