Update 62_Mugwump

This commit is contained in:
Andrew Cooper
2022-03-13 19:16:41 +11:00
parent 84c4741dd1
commit 455fea9609
12 changed files with 146 additions and 190 deletions

View File

@@ -0,0 +1,13 @@
namespace Mugwump;
// Provides input methods which emulate the BASIC interpreter's keyboard input routines
internal static class TextIOExtensions
{
internal static Position ReadGuess(this TextIO io, string prompt)
{
io.WriteLine();
io.WriteLine();
var (x, y) = io.Read2Numbers(prompt);
return new Position(x, y);
}
}