From a41d70afe7692e4ef344bc3c599115009f2dad15 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 8 Jan 2023 22:53:09 +0530 Subject: refactor: splits runtime up to use context --- examples/guess-number.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/guess-number.ts') diff --git a/examples/guess-number.ts b/examples/guess-number.ts index 92674fd..a20c993 100644 --- a/examples/guess-number.ts +++ b/examples/guess-number.ts @@ -1,7 +1,7 @@ import { Print, PutString, Bind, Kind1, JsExpr, ReadLine, Do, PutStringLn } from '../stdlib' export type main = [ - PutStringLn<"You have 5 guesses">, + PutStringLn<"Guess a number between 0 & 9. You have 5 guesses">, Bind< JsExpr<"Math.floor(Math.random() * 10)">, StartGuessing @@ -14,7 +14,7 @@ interface AskForGuess extends Kind1, + }/5`>, (StartGuessing<[...Attempts, 0]> & { input: N })['return'], ]> } -- cgit v1.3.1