private bool HasBeam(Int64 x, Int64 y) { Reset(); Brain.Run(); Brain.SendInput(x); Brain.SendInput(y); Brain.Run(); var output = Brain.GetOutputQueue(); if (output.Any()) { return(Brain.GetOutput() == 1); } return(false); }
private void Output(Int64 i) { OutputQueue.Enqueue(i); if (OutputMachine != null) { OutputMachine.SendInput(OutputQueue.Dequeue()); } SentOutput = true; }