https://github.com/probablycorey/egg
https://github.com/probablycorey/egg
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/probablycorey/egg
- Owner: probablycorey
- Created: 2018-03-08T00:22:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-08T20:22:20.000Z (over 8 years ago)
- Last Synced: 2025-02-07T09:33:42.386Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# egg
`https://services.tttiny.com/fetchLib/probablycorey/egg`
# eggample
```js
instructions(egg => {
if (egg.needsToPoop()) {
egg.poop()
return
} else {
let direction = egg.whereIsTheFood()
if (direction == 'left') {
egg.moveLeft()
} else if (direction == 'right') {
egg.moveRight()
} else {
egg.eat()
}
}
})
```