Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. when stage.signalReceived("rounding") {
  2. if(this.cloneId == 0) {
  3. this.good = 0;
  4. showVariable(ref this.good);
  5. for(let i = 0; i < 3; i++) {
  6. this.good += this.getpoint(i, i, alist);
  7. this.good += this.getpoint(i + 3, i, blist);
  8. this.good += this.getpoint(i + 6, i, clist);
  9. }
  10. if(this.good == 9) {
  11. stage.broadcast("win");
  12. }
  13. else {
  14. stage.broadcast("asking");
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement