Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tttool play does not support T() command #216

Open
DexCrane opened this issue Apr 14, 2020 · 3 comments
Open

tttool play does not support T() command #216

DexCrane opened this issue Apr 14, 2020 · 3 comments

Comments

@DexCrane
Copy link

For a game ("Das kleine Einmaleins") I try to generate the factors by random as follows:

  calc_first_factor: T($r,65535) $rnd += $r $rnd *= 25173 $rnd += 13849 $factor1 %= 11 J(calc_next_factor)
  calc_next_factor: T($r,65535) $rnd += $r $rnd *= 25173 $rnd += 13849 $factor2 %= 11 J(calc_result)
  calc_result: $result := $factor1 $result *= $factor2 J(read_out_task)

Unfortunatelly the factors are always 0. T($r,65535) seems always to return 0, doesn't it?
Or does this only work appropriately with the TipToi and not with tttool play ...?

@nomeata
Copy link
Member

nomeata commented Apr 14, 2020

Yes, looks like play does not support T yet.

@nomeata nomeata changed the title Random numbers tttool play does not support T() command Apr 14, 2020
@DexCrane
Copy link
Author

Thank you! Then the TipToi has to be used for final testing.

@nomeata
Copy link
Member

nomeata commented Apr 14, 2020

We can leave this open, there is no reason why play shouldn’t support this.

@nomeata nomeata reopened this Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants