Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huonw/icfp-2014
Entry to ICFP 2014
https://github.com/huonw/icfp-2014
Last synced: about 1 month ago
JSON representation
Entry to ICFP 2014
- Host: GitHub
- URL: https://github.com/huonw/icfp-2014
- Owner: huonw
- Created: 2014-07-31T02:49:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-31T02:51:13.000Z (over 10 years ago)
- Last Synced: 2023-08-03T00:11:03.147Z (over 1 year ago)
- Language: Rust
- Size: 207 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
An implementation of a basic lisp and a simple assembler in Rust.
Compile with `cargo build` to get a ./target/icfp-2014 binary (see
--help for basic instructions)The lisp supports mutation (with ST) and loops (via the TSEL
instruction), and the assembler emulates a stack, using register h as
the stack pointer.The lambda bot (ai/rating-bot.lisp, compiled with `../target/icfp-2014
rating-bot.lisp` in that directory) was implement in the lisp, simply
by giving each possible move a rating based on various heuristics
(like the proximity of the ghosts, if there's a pill there, if it's
moving towards the fruit/a power pill, if we've visited the cell
recently).The ghost (ghost/manhattan.asm, compiled with `../target/icfp-2014
--ghost manhattan` in that directory) is similar, although with
simpler heuristics, due to easily hitting the instruction limit.Versions:
- rustc 0.12.0-pre-nightly (a4553453a 2014-07-25 00:36:11 +0000)
- cargo-nightly 0.1.0-pre (0759283 2014-07-24 19:44:41 +0000)