Technical Machine /

Filename Size Date modified Message
bounded_integer [7133e03093c2]
build_scripts [625cf76377ea]
containers [12c88c4c9f70]
endian [db55e34e8e3d]
300 B
Renamed src directory to source.
237 B
Updated to latest bounded::integer. Added dependency on containers to replace functionality removed from bounded::integer.
212 B
Disable works in terms of move names instead of indexes.
775 B
Use scons-template as subrepo, which enables some new warnings. Fixed all unused variable warnings.
34.6 KB
Moved settings template files to src/settings/ instead of settings/
7.6 KB
Deleted hash functions. They did not hash things properly.
4.0 KB
Updated version numbers in
1.7 KB
Removed old build_scripts directory.

Technical Machine installation instructions

For a full overview of the program, see


  • clang version 3.8.0 or newer, with c++ support. Technical Machine makes use of some features in C++17 that are not supported in older versions of clang or current gcc, as well as some bug fixes.
  • gcc install of 5.3. 5.2 may still work, but all testing is currently done against 5.3. This is necessary for the C++ standard library support.
  • Boost. Listed as boost-devel in Fedora repositories. Technical Machine is primarily tested against version 1.60.0.
  • fltk is needed the stand-alone team predictor / builder. It is not needed to actually run the battling AI. Listed as fltk-devel.
  • SCons is used for the build process.

Building (Linux)

  • cd path/to/technical-machine
  • scons. The default target (by simply typing scons) will build all versions of all programs. Various stand-alone parts can be made by typing scons target, where target is what you want to build. In general, the debug version of any target is made by appending "-debug" to the target name. For instance, if you want to just build the core AI, you type scons ai. If you want to only build the debug version, you type scons ai-debug.
  • Fill in server information for the server you want to connect to, as found in "settings/settings.xml".
  • Run the program with ./ai [depth] or ./ai-debug [depth], where depth is an optional value that tells Technical Machine how many turns ahead to look (defaults to 2). The depth can be updated by sending a PM to the bot (if you are a trusted user, set in trusted_users.txt) with the command !depth #.

Build targets

The AI with maximum optimizations. Accepts a single, optional command-line argument, the depth to search. Higher depth means stronger play, but it also takes longer to search. If no value is entered, 2 is assumed. Recommended at 1 through 3. If you are very patient and have a fast computer, Technical Machine can search to a depth of 4 in a reasonable amount of time. If you set the depth of search to 0, Technical Machine moves randomly.
The AI with no optimizations and all asserts. Accepts a single command-line argument as above. Recommended at 1 or 2.
GUI team predictor. Enter in Pokemon already seen and it shows its prediction of the remaining team. If a Pokemon is put into the first slot, it is assumed to be the lead Pokemon. If no Pokemon is put in that slot, no lead stats are used.
Runs some tests to verify there are no regressions. Should be run before committing anything.
Tests with no optimizations enabled, to verify that optimizations do not change behavior.


Commands can be sent to Technical Machine on any server it is logged in to (and only apply on that server). It only accepts commands via PMs from trusted users (determined by reading settings/trusted_users.txt).

Format is !challenge username
Format is !depth # (where # represents the new depth as an integer). Sets Technical Machine's depth of search to #. This only applies to future challenges / battles. Existing battles are fixed in their depth.
Technical Machine logs out of the server.
Format is !join channel_name (with no '#' symbol)
Sends a message to a channel. Format is !message channel_name msg where channel is a one word channel name (with no '#' symbol) and message is any number of words. For channels that may optionally contain spaces, format is !message "channel name" msg
Format is !part channel_name (with no '#' symbol)
Format is !pm username message where username is a one word username. For usernames that may optionally contain spaces, format is !pm "user name" message
Same as !exit
Reloads all relevant text files. This allows updating TM's set of canned responses, how often it uses those responses, and evaluation constants, for instance.