Re: Multithreading and Variables Question About Robocode
fnl <[email protected]> Thu, 9 Jun 2016 13:43:14 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
Oh... forgot your second question. One way to carry information between rounds (and between games after Robocode has been closed down) is to write to the robot data file using the RobocodeFileOutputStream og RobocodeFileInputStream. But keep in mind that you only have 200.000 bytes of storage (its considered a part of the challenge that storage is limited for every robot). Cheers, - Flemming Den torsdag den 9. juni 2016 kl. 19.11.43 UTC+2 skrev David Hsieh: > > Hi! If you implement multithreading in Robocode, what happens if the two > parts of your code that are involved contradict each other in some way? > What would happen if one part told the robot to move one way, and the other > part of the code told it to move a different way? Would the processes occur > simultaneously as usually happens in multithreading, and if so how? > > For my second question, how do you carry information over between rounds? > Thanks! > -- You received this message because you are subscribed to the Google Groups "robocode" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.