GithubHelp home page GithubHelp logo

ia_uqac's Introduction

AI projects as part of a UQAC course

  1. MansionCleaner
  2. SudokuCSP

MansionCleaner

Goal is to implement a cleaning robot for a mansion. The agent will evolve in a matrix in which dirt and jewels are generated randomly. The robot has to clean dirt, pickup jewels and be the most efficient as possible. Every action cost him energy and reduces his performance, he also gets a penalty if he sucks a jewel with dirt instead of picking it up first. Viewing the mansion in order to re generate his list of actions to perform also costs him energy. Depending on his performance, the robot is able to adapt the maximum number of actions he will do before looking at the entire mansion again. This allows him to detect more frequently newly added dirt and jewels if he needs it. Four search algorithms were implemented and can be passed to the robot for him to choose his actions.

  • non informed search :

    • Bread-First Search
    • Depth-First Search
  • informed search :

    • Greedy search
    • A*

    appScreenshot

Getting Started

To run MansionCleaner, working directory must be src/, then simply run python3 main.py.

SudokuCSP

Goal is to implement a sudoku solver using CSP method. (Constraint Satisfaction Problems) Algorithms implemented in this CSP project :

  • Backtracking algorithm

  • MRV Minimum Remaining Values

  • Degree Heuristic

  • Least Constraining Value

  • Forward Checking

  • AC-3 algorithm

    appScreenshot

Getting Started

To run SudokuSolver, working directory must be src/, then simply run python3 main.py. If you want to try and solve a different sudoku, simply edit ressources/sudoku.txt which is the file used by the program. The first line has to be the size of the sudoku (can be any as long it is a regular squared sudoku) Fill it with numbers, empty boxes must be represented with a dot . and there must be a space in between every box.

ia_uqac's People

Contributors

cavaninicolas avatar koechslin avatar theo-grillon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

koechslin

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.