Giter VIP home page Giter VIP logo

comp472-indodot's Introduction

https://github.com/nguyenthanhtung2605/comp472-indodot

Comp472 - Project 1 - Indonesian Dot Puzzle

Team Artificial Ignorance

- Hongbo Liu: 29566228 <Leader>
- Thanh Tung Nguyen: 40042891

To run the program

python3 player.py -i <input_file_name> -s <search_algo_type>

Project Approach Requirements

Implement a solution for the Indonesian Dot for any size of boards (n) from [3 to 10].

2.1 Search Algorithms

The project must implement the following 3 search (Heuristic Search) algorithms:

1. Depth-first search (DFS)
2. Best-first search (BFS)
3. Algorithm A*

2.2 Programming Environment:

PyCharm on MacOS

2.3 The Input

Your code should be able to receive the path of an input file that contains test cases. The input file will contain a sequence of lines, containing:

1. the size of the puzzle (n)
2. the maximum depth search for DFS (max d)
3. the maximum search path length (maxl) for BFS and A?
4. the values of the initial puzzle’s n × n tokens, where each token will be represented by a 1 (•) or a 0 (◦).
The order of the tokens will be left-to-right, top-down.

When using DFS, you can ignore max_l and when using BFS or A? , you can ignore max_d. For example, the input file could contain (Figure 1):

4 9 50 1110100111000111
3 100 2000 011001100

puzzle #0: puzzle of Figure 1 with max_d = 9 and max_l = 50 puzzle #1: a 3 × 3 puzzle with max_d = 100 and max_l = 2000

Note: There is no need to check the validity of the input file; you can assume that it will be correct

comp472-indodot's People

Contributors

nguyenthanhtung2605 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.