Categories
Tutorial

What Are C# Delegates And How To Use Them

C# delegates are a type that represents references to methods with a specific function signature. In short, delegates are references to methods. Single cast C# Delegates Read Also: Solving the 8 puzzle problem using A* (star) algorithm An instantiated delegate can be associated with any method that has a compatible signature and return type. One can then […]

Categories
Tutorial

Solving the 8 puzzle problem using A* (star) algorithm

In this tutorial, we will solve the 8 puzzle problem using A* (star) search or pathfinding algorithm. Besides, the primary algorithm (A*), we will also use breadth-first, depth-first and greedy best-first search algorithms to find a solution for the 8 puzzle problem. We will approach the solution by first modelling the problem, then by building […]

Categories
Tutorial

How to Generate Mazes Using Depth-First Algorithm

In this tutorial, we will learn how to generate mazes using a depth-first algorithm. To do this firstly, I will define the problem, then I will explain the algorithm and finally demonstrate the implementation in Javascript. We will use P5js to demonstrate the working of the maze generation. Read Also:  Solving the 8 puzzle problem […]