MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / main

Method main

lab13/src/MemoryGame/MemoryGame.java:31–40  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

29 "Too easy for you!", "Wow, so impressive!"};
30
31 public static void main(String[] args) {
32 if (args.length < 1) {
33 System.out.println("Please enter a seed");
34 return;
35 }
36
37 long seed = Long.parseLong(args[0]);
38 MemoryGame game = new MemoryGame(40, 40, seed);
39 game.startGame();
40 }
41
42 public MemoryGame(int width, int height, long seed) {
43 /* Sets up StdDraw so that it has a width by height grid of 16 by 16 squares as its canvas

Callers

nothing calls this directly

Calls 1

startGameMethod · 0.95

Tested by

no test coverage detected