Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/whichxjy/not-cool

Pathfinding algorithms for TIC-80
https://github.com/whichxjy/not-cool

Last synced: about 2 months ago
JSON representation

Pathfinding algorithms for TIC-80

Awesome Lists containing this project

README

        

# Not Cool

Here are some pathfinding algorithms for [TIC-80](https://tic.computer/).

They're not COOOOOOOOOOOOOOOOOL.

## Demo

![Demo](https://github.com/whichxjy/not-cool/blob/master/demo.gif)

## Usage

1. Run TIC-80.

2. Choose an algorithm and place `xxx.lua` by your current working directory.
* `a-star.lua` - A* Search
* `bfs.lua` - Breadth First Search
* `bi-dir-bfs.lua` - Bidirectional BFS
* `dfs.lua` - Depth First Search
* `dijkstra.lua` - Dijkstra's Algorithm
* `gbfs.lua` - Greedy Best First Search
* `ida-star.lua` - Iterative Deepening A*
* `iddfs.lua` - Iterative Deepening DFS

3. Add `dofile('xxx.lua')` to the first line of code editor.

4. Import sprites from `sprites.gif`.

5. Import map from `world.map`, or draw it yourself.

6. Run cartridge.

## Key Map

| Action | Key |
|:-----------:|:------------:|
| Control "C" | Z |
| Control "L" | X |
| Up | Up Arrow |
| Down | Down Arrow |
| Left | Left Arrow |
| Right | Right Arrow |