Giter Club home page Giter Club logo

ai-iddfs-astar-alphabeta's Introduction

ai-iddfs-astar-alphabeta

Tile Puzzle

Developed two solvers for a generalized version of the Eight Puzzle, in which the board can have any number of rows and columns.

IDDFS

Yields all optimal solutions to the current board, represented as lists of moves. Valid moves include the four strings "up", "down", "left", and "right", where each move indicates a single swap of the empty tile with its neighbor in the indicated direction. Implemented using an iterative deepening depth-first search, consisting of a series of depth-first searches limited at first to 00 moves, then 11 move, then 22 moves, and so on.

A Star

Returns an optimal solution to the current board, represented as a list of direction strings. If multiple optimal solutions exist, any of them may be returned. Implemented as an A* search using the Manhattan distance heuristic.

Grid Nivigation

Implemented A* search.

Linear Disk Movement

Implemented A* search.

Dominoes Game

Develop an AI for a game in which two players take turns placing 1ร—21ร—2 dominoes on a rectangular grid. One player must always place his dominoes vertically, and the other must always place his dominoes horizontally. The last player who successfully places a domino on the board wins.

Alpha Beta Search

Returns a 3-element tuple containing the best move for the current player as a (row, column) tuple, its associated value, and the number of leaf nodes visited during the search.

Implementation of the alpha-beta search, with the restriction that it should look no further than limit moves into the future.

ai-iddfs-astar-alphabeta's People

Contributors

rickyrajani avatar

Stargazers

Leon Kim 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.