Work in Progress

Math Quiz (WIP)


AsherSV256 2019-11-14 11:59 (Edited)

It is now out of alpha! It is working! beta 0.1

Math Quiz (wip).nx | Open in app
2019-11-14 11:59

was8bit 2019-11-14 14:52 (Edited)

Fixed... :)

1) DO LOOP 's are not required as INPUT stops the program and automatically waits until the player responds

2) A is a numberic variable
A$ is a text variable
123 is a number value
"A" is a string value

Be careful, as A=B is comparing variable A with variable B

Remember A is a numeric variable and only accepts numbers... if user inputs a string (like the character A) then the string input is converted into a number.. any input that includes anything other than numbers (even an input like 123A456) will be converted to a numeric value of 0 (zero)

Math Quiz (fixed).nx | Open in app
2019-11-14 14:52

Timo 2019-11-14 15:56

DO LOOP makes sense, I used it in my adventure, too. If the user answers with an unsupported input, then it repeats the input.

was8bit 2019-11-14 16:08

Yes, i see your point :)

I overlooked that point, my thinking was if I was doing this code, I would skip the AB option, and do a hard core make the user input the answer without any options.... in THAT case, the DO LOOPS would not be needed, as you either get answer correct, or you don't...

... i will post a correction then ;)

was8bit 2019-11-14 16:13

PLEASE ignore my first posted fixed program, here is the correctly fixed program... see, even long time programmers make mistakes ;)

was8bit 2019-11-14 16:18

Here are an alternative version...

was8bit 2019-11-14 16:25

And a final alternative :)

was8bit 2019-11-14 16:26

Please post any questions ...

I like your game idea, it is fun :)

G-9 2019-11-14 16:48

maybe can you make a random quizz for more fun !

LowRes Oranges are good 2019-11-14 18:23

The reason it's not working is A and B are variables. They can only store a number, if you try and put text in them. They become 0. Strings are variables, but with text. In order to make a string you end it in $.

LowRes Oranges are good 2019-11-14 18:24

So therefore you need to replace A and B with B$ and A$

G-9 2019-11-16 17:35

This is a project by me and idea by you !

AsherSV256 2020-06-26 17:15

:) thanks for all of the support! I am just getting started with LowRes NX.
So thank you all for the support, i am now working on a adventure game similar to Timo’s :)

Log in to reply.