Skip to content

Commit

Permalink
Don't wrap IDE by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Jun 15, 2024
1 parent d6a0b5d commit 5631298
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
35 changes: 22 additions & 13 deletions projects/12/SysTest/Main.jack
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/11/Pong/Main.jack
// File name: projects/12/SysTest/Main.jack

/**
* The game of Pong, showing off the language's object-oriented model. Use the
* arrow keys to move the paddle left and right to bounce a ball. Every bounce,
* the paddle becomes smaller, and the game ends when the ball hits the bottom
* of the screen.
*/
/** Test program for the OS Sys class. */
class Main {
/** Initializes a Pong game and starts running it. */

/** Tests the wait method of the Sys class. */
function void main() {
var PongGame game;
do PongGame.newInstance();
let game = PongGame.getInstance();
do game.run();
do game.dispose();
var char key;

do Output.printString("Wait test:");
do Output.println();
do Output.printString("Press any key. After 2 seconds, another message will be printed:");

while (key = 0) {
let key = Keyboard.keyPressed();
}
while (~(key = 0)) {
let key = Keyboard.keyPressed();
}

do Sys.wait(2000);

do Output.println();
do Output.printString("Time is up. Make sure that 2 seconds elapsed.");

return;
}
}
2 changes: 1 addition & 1 deletion src/app/IDE.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import CodeEditorTabs from "./CodeEditorTabs.svelte";
import wrapIcon from "/wrap.svg?raw";
let wrap = true;
let wrap = false;
</script>

<div id="ide">
Expand Down

0 comments on commit 5631298

Please sign in to comment.