Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shybyte/rusty-13-ways-of-looking-at-a-turtle
Thirteen different ways of implementing a LOGO-style turtle in Rust
https://github.com/shybyte/rusty-13-ways-of-looking-at-a-turtle
functional-programming programming-paradigms rust
Last synced: 14 days ago
JSON representation
Thirteen different ways of implementing a LOGO-style turtle in Rust
- Host: GitHub
- URL: https://github.com/shybyte/rusty-13-ways-of-looking-at-a-turtle
- Owner: shybyte
- License: mit
- Created: 2017-05-23T05:16:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T09:48:16.000Z (over 7 years ago)
- Last Synced: 2024-11-09T08:45:09.043Z (2 months ago)
- Topics: functional-programming, programming-paradigms, rust
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thirteen different ways of implementing a LOGO-style turtle in Rust [![Build Status](https://travis-ci.org/shybyte/rusty-13-ways-of-looking-at-a-turtle.svg?branch=master)](https://travis-ci.org/shybyte/rusty-13-ways-of-looking-at-a-turtle)
See also [https://github.com/swlaschin/13-ways-of-looking-at-a-turtle](https://github.com/swlaschin/13-ways-of-looking-at-a-turtle)
for the Original in F#.## Common Code
This [common code](src/common.rs) is used from all implementations.
## The thirteen implementations
#### 1. Basic OO -- Class with mutable state
* [OO Turtle Client](examples/01-oo-turtle.rs)
* [OO Turtle](src/oo_turtle.rs)#### 2. Basic FP -- Module of functions with immutable state
* [FP Turtle Client](examples/02-fp-turtle.rs)
* [FP Turtle](src/fp_turtle.rs)
* [FP Utils](src/fp_utils.rs)#### 3. API (string commands) with an object-oriented core
* [API-OO-Core](examples/03-api-oo-core.rs)
## License
MIT
## Copyright
Copyright (c) 2017 Marco Stahl