I'm thinking of picking up this project again. I finally wrote documentation for Ask. I'm trying to keep the documentation understandable for someone with only a marginal programming background (i.e. may have touched a C-based programming language or similar in the past or just started.)

I'm looking for feedback on this documentation (suggestions via post, ping, or PR are welcome!)

I'm also looking for clean (as clean as you can get with this language >.>) demo programs.

You can easily relocate your input (In lieu of input commands, I'm using the "modify this program with input values" technique) to the top of the program using Skip commands. I created a trivial multiplication program here. It's a model Village program, about as clean as it gets. I'm playing with the idea of named labels at some point, so that users viewing without line numbers don't have to count. You can just load it into the interpreter though.


Code:
Skip to line 22.
Note: ==========
Note: Trivial multiplication program
Note: Results: A*B -> output
Note: Author: _iPhoenix_
Note: ==========

Note: Inputs:
Note: =======

Note: MODIFY THIS LINE FOR A
Tell Ada to mine 16 stone.

Note: MODIFY THIS LINE FOR B
Tell Alan to mine 16 stone.

Note: =======

Tell Ken to write the text "waiting..." on his scroll.
Skip to line 40.

Note: Init:
Note: =====

Call for the villager named Ada.
Teach Ada how to mine stone.

Call for the villager named Alan.
Teach Alan how to mine stone.

Call for the villager named Ken.
Teach Ken how to mine stone.

Call for the villager named John.
Teach John how to mine stone.

Skip to line 9.

Note: Main program:
Note: =============

Tell Ken to mine 1 stone.
Tell Ada to double her stone.

Tell Alan to write the text "waiting..." on his scroll.
Tell Alan to write the text "waiting..." on his scroll.

Tell Alan to clear his scroll.

Tell Ada to give John half of her stone.

Ask Ken if he has less stone than Alan.
 - If he does:
  + Skip to line 40.

Note: Output:
Note: =======
Tell John to write the amount of stone he has on his scroll.
Tell John to post his scroll to the Community Message Board.
I don't understand this but nice job!
Read the first post Razz Basically a message board programming thingy

_iPho: cool! I still can't make this work for me, maybe I'm not using the right case?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement