ROBOCODE(6)

πŸ’– NAME πŸ’–

okay so bestie, welcome to ROBOCODE(6) β€” a Java programming game where literal battle tanks fight it out and you're the one coding their little brains πŸͺ–βœ¨. It lives in the User Commands corner of the manual, and yes, section 6 is where the fun stuff hangs out πŸ’….


πŸŽ€ SYNOPSIS πŸŽ€

robocode [-?] [-help] [-cwd path] [-battle filename [-results filename]
[-record filename] [-recordXML filename] [-replay filename] [-tps tps]
[-minimize] [-nodisplay] [-nosound]

that's the whole vibe check right there, no cap. every flag is optional, the brackets go nesting like it's nothing, and you can just run robocode with zero arguments if you're feeling chaotic πŸ’€.


✨ DESCRIPTION ✨

this is the part where we go flag by flag, so grab your lil' strawberry drink πŸ“ and let's get into it:

  • -? or -help β€” prints out the command line usage of Robocode. it's the "pls explain yourself" button, and honestly? iconic for when you forget everything πŸ™ˆ
  • -cwd <path> β€” change the current working directory. yes she's moving the whole party somewhere else, periodt.
  • -battle <battle file> β€” run the battle specified in a battle file. this is THE main character move πŸ‘‘
  • -results <results file> β€” save results to the specified text file. receipts!! we love documentation of who won πŸ’–
  • -record <bin record file> β€” record the battle into the specified file as binary. lil' raw bytes of history.
  • -recordXML <xml rec file> β€” record the battle into the specified file as XML. same energy, but make it readable, slay ✨
  • -replay <record file> β€” replay the specified battle record. rewatch the drama like it's a comfort show πŸŽ€
  • -tps <tps> β€” set the TPS > 0 (Turns Per Second). note the > 0 bestie, zero is not the move, the number's gotta be bigger than that.
  • -minimize β€” run minimized when Robocode starts. she's shy, she's in the background πŸ¦‹
  • -nodisplay β€” run with the display / GUI disabled. no window, no visuals, just pure tank business.
  • -nosound β€” run with sound disabled. silent mode, lowkey mysterious 🀫

🧚 Java Properties include:

these ones you pass through as Java properties, they hit different 🫢

  • -DWORKINGDIRECTORY=<path> β€” set the working directory.
  • -DROBOTPATH=<path> β€” set the robots directory (default is 'robots').
  • -DBATTLEPATH=<path> β€” set the battles directory (default is 'battles').
  • -DNOSECURITY=true|false β€” enable/disable Robocode's security manager. you literally type true or false, it's giving checkbox energy.
  • -Ddebug=true|false β€” enable/disable debugging used for preventing robot timeouts and skipped turns, and allows an an unlimited painting buffer when debugging robots.
  • -DlogMessages=true|false β€” log messages and warnings will be disabled.
  • -DlogErrors=true|false β€” log errors will be disabled.
  • -DEXPERIMENTAL=true|false β€” enable/disable access to peer in robot interfaces. it's called EXPERIMENTAL for a reason bestie, tread carefully πŸ’€
  • -DPARALLEL=true|false β€” enable/disable parallel processing of robots turns.
  • -DRANDOMSEED=<long number> β€” set seed for deterministic behavior of random numbers. want the exact same chaos every single time? this is your girl 🌈

🌈 SEE ALSO 🌈

  • java (1) β€” go say hi, she's the whole foundation πŸ’œ

okay so that's the whole page, and for the lil' sign-off: this one's sourced as Java programming game, version/date stamped October 2014, filed under ROBOCODE(6) 🌸. go build a tank bestie, you got this fr fr πŸ’…βœ¨