Skip to main content

Timeline for Minimal NetHack

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Jul 3, 2015 at 13:28 comment added Luaan @Hand-E-Food Yeah, it's noted there - you can use the /main compiler option to change the entry point. That's why I said "technically" - as far as the code is concerned, it doesn't have to be Main. You'll have to tell the compiler the proper main method, though. Main is just the default.
Jul 3, 2015 at 13:16 comment added Hand-E-Food @Luaan, I think you're mistaken. C# documentation: msdn.microsoft.com/en-us/library/acy3edy3.aspx
Jul 3, 2015 at 11:45 comment added Luaan Technically, the Main method doesn't have to be called Main, so you could shave off another three characters.
Jul 3, 2015 at 3:58 history edited Hand-E-Food CC BY-SA 3.0
Use NumPad for input.
Jul 3, 2015 at 3:44 history edited Hand-E-Food CC BY-SA 3.0
Optimization.
Jul 3, 2015 at 3:34 history edited Hand-E-Food CC BY-SA 3.0
Use ConsoleKey instead of char.
Jul 3, 2015 at 3:32 comment added Hand-E-Food Thanks @tolos for the tip on implicitly casting char to int! Better yet, if I use the ConsoleKey enum cast as int, I can use 2-digit values.
Jul 3, 2015 at 3:23 comment added Hand-E-Food Only class fields are initialised by default, and that requires them being declared static in this case. Method variables must be initialised before first use. That takes less characters: 4 vs 7.
Jul 3, 2015 at 2:54 comment added user21677 I think C# ints implicitly init to zero. Also (can't check at the moment) if casting isn't an issue you can convert character literals to ints, or at least the 'a' to 97 (I think) though the others are three digits.
Jul 3, 2015 at 2:01 history edited Hand-E-Food CC BY-SA 3.0
Rewritten to take advantage of free printing.
Jul 3, 2015 at 1:50 history edited Hand-E-Food CC BY-SA 3.0
Remembered to exclude print function from the score.
Jul 3, 2015 at 1:44 history edited Hand-E-Food CC BY-SA 3.0
Remembered to exclude print function from the score.
Jul 3, 2015 at 1:38 history edited Hand-E-Food CC BY-SA 3.0
Reduced solution by 4 bytes.
Jul 3, 2015 at 1:15 history answered Hand-E-Food CC BY-SA 3.0