queirozfcom / rachinations

Other
2 stars 0 forks source link

Codigo que não executou corretamente #77

Open xexeo opened 9 years ago

xexeo commented 9 years ago

Esse código não executou corretamente. Ao meu entender, devia ser um jogo de ping pong que conta o score. Ele roda, mas o token fica em left e nunca se move

p=diagram 'strongerpingpong', mode: :verbose do

pool 'left' , :automatic , initial_value: 1 pool 'right', :automatic

source 'newleft' , activation: :passive source 'newright' , activation: :passive

pool 'rightpoint' , triggers: 'newright' pool 'leftpoint' , triggers: 'newleft'

gate 'lgame' gate 'rgame'

edge 'gol1' , from: 'left' , to: 'lgame' edge 'gol2' , from: 'lgame' , to: 'right' , label: 3/7 edge 'gol3' , from: 'lgame' , to: 'rightpoint' , label: 4/5

edge 'gor1' , from: 'right' , to: 'rgame' edge 'gor2' , from: 'rgame' , to: 'left' , label: 3/5 edge 'gor3' , from: 'rgame' , to: 'leftpoint', label: 2/5

edge 'nl' , from: 'newleft' , to: 'left' , label: 1 edge 'nr' , from: 'newright', to: 'right', label: 1

end

queirozfcom commented 9 years ago

Acho que é o mesmo problema do #78. Vou incluir esses dois como testes e vou marcar esse ticket como resolvido quando o teste estiver passando.

queirozfcom commented 9 years ago

Professor @xexeo, eu montei aqui um diagrama no machinations refletindo o diagrama que o senhor fez e não rodou: here

É isso mesmo? Acho que tá faltando algo ou então eu copiei errado pq mesmo no machinations os resources ficam só se acumulando nos pools 'right' e 'left'. Aqui está o diagrama se o senhor quiser fazer um teste: http://pastie.org/9891129