Commit Graph

9 Commits

Author SHA1 Message Date
Daniel Xie
5f1b58fd86 Evaluator + Netscript should now properly handle errors in syntax/runtime errors (almost..still have to implement the properly closing down script when an error is thrown. Check file for TODO). Player skill level should now properly be updated 2016-12-15 16:22:42 -06:00
Daniel Xie
23c036827f Fixed script hack(), should be working now. Changed some numbers to rebalance. Implemented script RAM usage. If a script uses too much ram it will not run (untested) 2016-12-14 14:29:40 -06:00
Daniel Xie
c485f28e20 updated README with TODOS. FIxed kill command and sleep() command in script 2016-12-13 17:52:32 -06:00
Daniel Xie
8c58710495 Resolving and rejecting at the top level now returns a reference to workerScripts. This makes killing/deleting a running script possible. The feature appears to be working now 2016-12-06 10:59:20 -06:00
Daniel Xie
437ebc2703 Implemented Hack and sleep in script. IMplemented functionality that allows scripts to stop (rejecting the Promises). Scripts will now automatically stop if they are not infinite. THIS IS UNTESTED TEST THIS WHEN I CAN. Still need to implement kill command 2016-12-05 16:31:46 -06:00
Daniel Xie
867ae191b5 Refactored Netscript code into their respective files since it will no longer be done in Web Worker 2016-11-29 17:07:24 -06:00
Daniel Xie
320526ebb3 Added stuff to Script queue functionality..it's gonna get deleted anyways so w.e 2016-11-25 16:08:04 -06:00
Daniel Xie
d372ce5980 Fixed some bugs, began adding a Script class 2016-11-21 00:11:14 -06:00
Daniel Xie
8d87b74eaf Finished implementing Netscript. Not completely tested yet. Find out how to make it multithreaded (Web Workers is the best way according to internet 2016-11-17 16:25:40 -06:00