mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 19:19:36 +02:00
Refactor repo structure
This commit is contained in:
parent
36ac339086
commit
8fc89fbc03
1732 changed files with 3812 additions and 67 deletions
22
Data/Questions/ingsw/34/wrong 2.txt
Normal file
22
Data/Questions/ingsw/34/wrong 2.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
block MarkovChain
|
||||
//external function myrandom() returns a random real number in [0, 1]
|
||||
parameter Real x0 = 0;
|
||||
OutputReal x;
|
||||
Integer countdown;
|
||||
algorithm
|
||||
when initial() then
|
||||
x := x0;
|
||||
countdown := 0;
|
||||
elsewhen sample(0, 10) then
|
||||
if (countdown <= 0)
|
||||
then
|
||||
countdown := 1 + integer(floor(myrandom()));
|
||||
x := 1 - pre(x);
|
||||
Domanda 35
|
||||
Risposta non data
|
||||
Punteggio max.: 1,00
|
||||
else
|
||||
countdown := countdown - 1;
|
||||
end if;
|
||||
end when;
|
||||
end MarkovChain;
|
Loading…
Add table
Add a link
Reference in a new issue