Created
April 12, 2017 08:20
-
-
Save Porges/30bed5dfa0675841cd3eb739c77650fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled with JetBrains decompiler | |
// Type: BefungeProgram | |
// Assembly: BefungeAssembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null | |
// MVID: 65A2B595-E084-42D2-81CC-A4F495D3475C | |
// Assembly location: C:\Users\porges\Documents\Visual Studio 2017\Projects\Befunge\Bege\bill.exe | |
// Compiler-generated code is shown | |
using System.IO; | |
using System.Runtime.InteropServices; | |
public sealed class BefungeProgram : Bege.Runtime.BefungeBase | |
{ | |
public BefungeProgram([In] TextReader obj0, [In] TextWriter obj1, [In] ulong obj2) | |
{ | |
this.\u002Ector(obj0, obj1, ">v>>>>>>>>>>>>>>>>>v \r\n v^<<<<<<<?>>>>>>>>v\r\n v ^ v\r\n v v\r\n v v\r\n v > ? < v\r\nv< 1 >v\r\n>v ^ v<\r\n v v\r\n v v<<<?<<<< .\r\n v > ^ <\r\n >v >^\r\n >v >>>>>>>>>>>>>^\r\n >v^<<<<<<<<<<<\r\n >>>>>v >>>>>^\r\n >>^", obj2); | |
} | |
public BefungeProgram() | |
{ | |
this.\u002Ector(">v>>>>>>>>>>>>>>>>>v \r\n v^<<<<<<<?>>>>>>>>v\r\n v ^ v\r\n v v\r\n v v\r\n v > ? < v\r\nv< 1 >v\r\n>v ^ v<\r\n v v\r\n v v<<<?<<<< .\r\n v > ^ <\r\n >v >^\r\n >v >>>>>>>>>>>>>^\r\n >v^<<<<<<<<<<<\r\n >>>>>v >>>>>^\r\n >>^"); | |
} | |
private void Right_0_0() | |
{ | |
this.Right_9_11(); | |
} | |
private void Down_4_19() | |
{ | |
Bege.Runtime.BefungeBase.OutputNumber(this.Pop(), (Bege.Runtime.BefungeBase) this); | |
this.Right_9_11(); | |
} | |
private void Right_5_6() | |
{ | |
switch (this.Rand()) | |
{ | |
case 1: | |
this.Right_5_6(); | |
break; | |
case 2: | |
this.Right_5_6(); | |
break; | |
case 3: | |
this.Down_6_10(); | |
break; | |
default: | |
this.Down_4_19(); | |
break; | |
} | |
} | |
private void Up_6_10() | |
{ | |
Bege.Runtime.BefungeBase.Push(1, (Bege.Runtime.BefungeBase) this); | |
switch (this.Rand()) | |
{ | |
case 1: | |
this.Right_5_6(); | |
break; | |
case 2: | |
this.Right_5_6(); | |
break; | |
case 3: | |
this.Down_6_10(); | |
break; | |
default: | |
this.Down_4_19(); | |
break; | |
} | |
} | |
private void Down_6_10() | |
{ | |
Bege.Runtime.BefungeBase.Push(1, (Bege.Runtime.BefungeBase) this); | |
this.Up_6_10(); | |
} | |
private void Left_9_10() | |
{ | |
switch (this.Rand()) | |
{ | |
case 1: | |
this.Left_9_10(); | |
break; | |
case 2: | |
this.Left_9_10(); | |
break; | |
case 3: | |
this.Right_9_11(); | |
break; | |
default: | |
this.Up_6_10(); | |
break; | |
} | |
} | |
private void Right_9_11() | |
{ | |
switch (this.Rand()) | |
{ | |
case 1: | |
this.Left_9_10(); | |
break; | |
case 2: | |
this.Right_9_11(); | |
break; | |
case 3: | |
this.Right_9_11(); | |
break; | |
default: | |
this.Up_6_10(); | |
break; | |
} | |
} | |
public virtual int Run() | |
{ | |
this.Right_0_0(); | |
return this.GetCount(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment