CodeWalrus

Development => Web => Topic started by: _iPhoenix_ on October 15, 2018, 11:13:02 am

Title: Village
Post by: _iPhoenix_ on October 15, 2018, 11:13:02 am
So apparently I don't have a thread for my current project here. Dang.


Village is my long-term project. It's an Esolang where you are a village chief and you get to command people around and do things. It's a lot of fun.


Here's a basic "hello, world" program:
Code: [Select]
Call for the villager named Ada.
Tell Ada to write the text "Hello, World!" on her scroll.
Tell Ada to post her scroll to the Community Message Board


Pretty simple!


Villagers can have occupations.
Code: [Select]
Call for the villager named Alan.
Teach Alan how to gather wood.


Note: This next task takes 3 successful lines of code to complete.
Tell Alan to gather 20 wood.


Note: waste 3 commands.
Call for the villager named Ken.
Teach Ken how to draft blueprints.
Tell Ken to make a blueprint for a railroad to the North village.


Note: At this point, Alan's done getting wood.
Tell Alan to write the text "I have " on his scroll.
Tell Alan to write the amount of wood he has on his scroll.
Tell Alan to write the text " wood." on his scroll.
Tell Alan to post his scroll to the Community Message board.

Not all of the features are officially documented yet, with the main undocumented feature being Ask commands, aka conditionals. They are explained pretty well in my Cemetech topic:
(click to show/hide)



There's more stuff in the docs (https://github.com/Legend-of-iPhoenix/Village/tree/master/docs).

Link to interpreter (https://legend-of-iphoenix.github.io/Village/)

The console messages (when debug mode is on) will help explain the examples and should help you.

Enjoy!