This guide was created with Scribe in 6 minutes. Sign in and create your own!
General fizzbuzz in Praxis
Torbjörn Josefsson |
0 step |
6 minutes
Toblotron
Navigate to [https://toblotron.com/praxis/0.1.0/](https://toblotron.com/praxis/0.1.0/)
As soon as you come to the IDE you will get a new, empty model. Let's name it and add a rules-page
Type "fizzbuzz" as project name, followed by [[Return]].
Right-click the "fizzbuzz" project-node in the navigation menu, and add a rules-page
Click "Add rules page"
Here we see the new rules-page, per default named "Page #0"
Drag out a Predicate shape to make your first rule
Name the rule "fizzbuzz", and add "Nr" and "Answer" as arguments
Click "Ok"
Now we have a rule, in the simplest form, but it doesn't do anything yet. Let's add a data table to store our factors and responses.
Right-click the "fizzbuzz" project node
Click "Add data table"
Name the table "factors"
Click this dropdown to set column 1 as integer.
Name it "factor"
Set column 2 to be an atom (a kind of enum-like thing)
Name it "Response"
Click "Ok"
And now we can enter our two rows of data:
3, fizz
5, buzz
Click "Page # 0" to go back to our rules-page
Drag out a Table shape to refer to the data we just entered
Want to make guides like this in seconds? Yes, it's really that fast.
0 Selected
This Scribe is in tip-top shape!Leave feedback if there are any issues with this Scribe
Have something to say?Create an account to leave messages for the author to see!
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key