- Notifications
You must be signed in to change notification settings - Fork0
NTI IRS 2019-2020 "y combinator" team repository
License
run4w4y/nti_irs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
You can build the code vianix-build
:
nix-build
or using nix-shell:
nix-shell --run ./build.sh
./build.sh
To get your day solutions built do:
./batchBuild.sh dayN
This will result in files likebuilds/out/dayN/real_1_1.js
and so on.To have your build output uploaded as well, add--upload ip1 ip2 ...
in the end of the command above.
Note thatbuilds/in/dayN.in
must be defined for that. To pass the inputs from.in
file to your haxe code use@:inputFrom
metadata. Example:
classModelextendsRobotModel { @:inputFrom("real_1")staticfunctiongetInput():Stringreturn"";overridepublicfunctionsolution():Void {// your solution goes here }}
./trikRun.sh [path] [ip]
Script.print calls are echoed to stdout while script runs. Ctrl+C stops execution on the TRIK brick.You can also omit the ip if it's meant to be 192.168.77.1
./upload.sh [path1 path2 ...] -- [ip1 ip2 ...]
--
is omittable if there's only one ip
nix-shell --pure
nix test.nix
haxe test.hxml
You might want to usexclip
CLI tool, to copy and paste code in the TRIK Studio faster. Example usage:
xclip -sel cli< result/patched.js
This command copies the contents ofresult/build.js
to your clipboard.
haxelib setup ./lib
Build dependencies:
haxelib install build.hxml
Tests dependencies:
haxelib install test.hxml
You can find our team solutions for the second stage online tasks in thearchive
folder.
Documentation is currently being written. You can check out what's got documented so far inWiki
About
NTI IRS 2019-2020 "y combinator" team repository