Giter Club home page Giter Club logo

ai-intro-project's Introduction

Table of Contents

The Penniless Pilgrim Riddle: Introduction

A capstone project for Introduction to Artificial Intelligence course.
A quick introduction of the problem: Can you solve the penniless pilgrim riddle? - Daniel Finkel.

In short, we will keep the original rules of the game, but randomize the board size and the "forced moves" (aka. the initial state).

image

Play the game!

Five easy steps to play the game:

  1. Make sure that Python (3.9.9) and pip (21.x) are installed on your local machine
  2. Download this repository, unzip it (it's safe to use the option Extract here)
  3. Open cmd (or terminal), navigate (using cd) to that folder (AI-intro-project-main by default)
  4. Run
    pip install .
  5. Run
    python AI_intro_project\play.py
    to open the UI above

If you want to completely remove the game, just delete the zip file and the folder specified above.

WARNING: Running algorithms or analytical files might cause your computer to get a bit slow and laggy. Use at your own risk.

Hyperlinks

The website of the project: https://htnminh.github.io/AI-intro-project/

The demo video of the game: https://drive.google.com/drive/folders/1umrgx2-0w48aSoWVvgOEyPI1revnNV8j?usp=sharing

The report Notion page: https://htnminh.notion.site/The-Penniless-Pilgrim-Riddle-e3bbfaf5d7b949fdadf5a898df1f8883

Collaborators

We are K65 of Hanoi University of Science and Technology, major in Data Science and Artificial Intelligence. Under the guidance of our lecturer, Professor Muriel Visani, we will together solve this riddle.

  • Hoàng Trần Nhật Minh
  • Nguyễn Hoàng Phúc
  • Lê Thảo Anh
  • Lý Nhật Nam
  • Đỗ Xuân Phong

Guide for collaborators

Introduction to files and directories in the repository

Important:

  • AI_intro_project\Coordinate_and_Move.py and AI_intro_project\State.py: The core game.
  • AI_intro_project\play.py: The UI of the game.
  • AI_intro_project\StateRandomizer.py: The file to randomly generate and save initial states.
  • AI_intro_project\search_algo\astar_Sfirst.py: The implementation of A*.
  • AI_intro_project\search_algo\dfs.py: The implementation of DFS.
  • AI_intro_project\search_algo\recursive_BFS.py: The implementation of RBFS.
  • publication\group17-presentation.pdf: The presentation.
  • publication\group17-report.pdf: The report.

Interesting:

  • AI_intro_project\_initial_states_images: The images of the randomized initial states.
  • AI_intro_project\_RBFS_solved_state_images: The images of the solution generated by RBFS algorithm.
  • AI_intro_project\_s_astar-Sf_solved_state_images: The images of the solution generated by A* algorithm.
  • AI_intro_project\_s_DFS_solved_state_images: The images of the solution generated by DFS algorithm.
  • AI_intro_project\randomized_states: The pickle files (default .pkl but we use .state to distinguish) of the randomized initial states.

Docs

ai-intro-project's People

Contributors

htnminh avatar almondnguyen avatar tanuni0 avatar katakd avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ai-intro-project's Issues

Test the classes in Game.py

Please write the tests for classes in the Game.py file. There should be at least 20 tests for each method.
By the way, everyone should press "Watch" on this repository, so when someone else commits something, a friendly reminder will shows up on your newsfeed.
@tanuni0 @katakd @PhongDX9701 @almondnguyen

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.