Super Mario. Martin Ivanov ETH Zürich 5/27/2015 1

Similar documents
Classic Nintendo Games Are (Computationally) Hard

Mario Kart Is Hard. Citation. As Published Publisher. Version

Quantified Boolean Formulas: Call the Plumber!

MITOCW watch?v=7d73e1dih0w

How hard are computer games? Graham Cormode, DIMACS

CSE 417: Review. Larry Ruzzo

More NP Complete Games Richard Carini and Connor Lemp February 17, 2015

Tutorial Super Mario Bros 2 3ds Star Coins World 3-castle

Scrabble is PSPACE-Complete

arxiv:cs/ v2 [cs.cc] 27 Jul 2001

Lecture 16 Scribe Notes

Super Mario Bros. Game Guide. 3rd edition Text by Cris Converse. Published by

Lecture 19 November 6, 2014

HIROIMONO is N P-complete

arxiv: v1 [cs.cc] 12 Dec 2017

depth parallel time width hardware number of gates computational work sequential time Theorem: For all, CRAM AC AC ThC NC L NL sac AC ThC NC sac

Lumines is NP-complete

Easy to Win, Hard to Master:

The Computational Complexity of Angry Birds and Similar Physics-Simulation Games

arxiv: v2 [cs.cc] 29 Dec 2017

MITOCW watch?v=x-ik9yafapo

Tetsuo JAIST EikD Erik D. Martin L. MIT

Scrabble is PSPACE-Complete

Hanabi is NP-complete, Even for Cheaters who Look at Their Cards,,

arxiv: v1 [cs.cc] 28 Jun 2015

Alessandro Cincotti School of Information Science, Japan Advanced Institute of Science and Technology, Japan

Legend of zelda nes unblocked

Lecture 20 November 13, 2014

Universiteit Leiden Opleiding Informatica

Problem Set 4 Due: Wednesday, November 12th, 2014

Retro games online free

Algorithmique appliquée Projet UNO

Tutorial Super Mario Bros 2 3ds Star Coins World

Tutorial Super Mario Bros 2 3ds Cheats Flower World 5 Castle

Latest Press Release. Cheap auto insurance quotes for california

May 1, Beta Controls: To start game, make sure you press the green flag twice, then press Z to start. To select a stage, move the mouse.

MULTINATIONAL WAR IS HARD

Super mario bros 3 unblocked download

Surfing on a Sine Wave

Andes Game Platform Porting

Game Gear Reviews! Issue 1 January In this puzzling issue: - Dr. Robotnik s Mean Bean Machine - Pac-Attack - Super Columns

Online gba emulator unblocked

G54GAM Lab Session 1

Creating autonomous agents for playing Super Mario Bros game by means of evolutionary finite state machines

Bust-a-Move/Puzzle Bobble Is NP-complete

The 2010 Mario AI Championship

5.4 Imperfect, Real-Time Decisions

STRATEGY AND COMPLEXITY OF THE GAME OF SQUARES

Tutorial Super Mario Bros 2 3ds Secret World 3

2048 IS (PSPACE) HARD, BUT SOMETIMES EASY

Kaboozle Is NP-complete, even in a Strip

Your Name and ID. (a) ( 3 points) Breadth First Search is complete even if zero step-costs are allowed.

Tutorial Super Mario Bros 2 3ds Cheats World 1 5 Castle

22c181: Formal Methods in Software Engineering. The University of Iowa Spring Propositional Logic

Tutorial Super Mario Bros 2 3ds Cheats World 1 Castle Star Coins

Mega Man 2. Man is one of the most recognizable brands in the console game business. To date, he

Tutorial Super Mario Bros 2 3ds Secret World 3-4

Super Mario World Manual Windows 7 64 Bits

Problem. Operator or successor function - for any state x returns s(x), the set of states reachable from x with one action

Tutorial Super Mario Bros 2 3ds Secret World 3 Ghost House

the gamedesigninitiative at cornell university Lecture 4 Game Components

Mario Kart: Double Dash!!

Tutorial Super Mario Bros 2 3ds Cheats Mushroom World

Digital Logic Circuits

Tutorial Super Mario Bros 2 3ds Secret World 3 Tower

arxiv: v1 [cs.cc] 16 May 2015

Reinforcement Learning in a Generalized Platform Game

Monte Carlo based battleship agent

TwoDots is NP-Complete

arxiv: v2 [cs.cc] 20 Nov 2018

Game Design and Programming

Chapter 3 Digital Logic Structures

Convergence in competitive games

On the Parameterized Complexity of Finding Short Winning Strategies in Combinatorial Games

User-preference-based automated level generation for platform games

MTH 103 H Final Exam. 1. I study and I pass the course is an example of a. (a) conjunction (b) disjunction. (c) conditional (d) connective

Nintendo 3DS Player's Guide Pack: Prima Official Game Guide: Animal Crossing: New Leaf - Mario Kart 7 - New Super Mario Bros.

Computational aspects of two-player zero-sum games Course notes for Computational Game Theory Section 3 Fall 2010

Written by Christopher Groux Saturday, 23 February :29 - Last Updated Saturday, 23 February :29

Faithful Representations of Graphs by Islands in the Extended Grid

The Hardness of the Lemmings Game, or Oh no, more NP-Completeness Proofs

Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

The Complexity of Escaping Labyrinths and Enchanted Forests

Towards a Generic Framework for Automated Video Game Level Creation

Ebay wii 4 player bundle mega

MITOCW watch?v=ku8i8ljnqge

PLANETOID PIONEERS: Creating a Level!

PINOCHLE SINGLE DECK PARTNERS STRATAGY NOTES

Solving Nonograms by combining relaxations

Mario 64 emulator online unblocked Mario 64 emulator online unblocked

Sokoban: Reversed Solving

arxiv: v1 [cs.cc] 2 Dec 2014

New Super Mario Bros Wii Mushroom House >>>CLICK HERE<<<

Game Values and Computational Complexity: An Analysis via Black-White Combinatorial Games

The Complexity of Request-Response Games

CSE 21 Practice Final Exam Winter 2016

(Insert Level Image Here:)

Techniques for Generating Sudoku Instances

USING THE GAME BOY ADVANCE TO TEACH COMPUTER SYSTEMS AND ARCHITECTURE *

Computer Science COMP-250 Homework #4 v4.0 Due Friday April 1 st, 2016

Transcription:

Super Mario Martin Ivanov ETH Zürich 5/27/2015 1

Super Mario Crash Course 1. Goal 2. Basic Enemies Goomba Koopa Troopas Piranha Plant 3. Power Ups Super Mushroom Fire Flower Super Start Coins 5/27/2015 2

Reductions Y is polynomial-time reducible to X X is at least as hard as Y if X can be solved in polynomial time, then Y can be solved in polynomial time if Y can not be solved in polynomial time, then X cannot be solved in polynomial time 5/27/2015 3

Computational Complexity Overview 1. P multiplication sorting 2. NP integer factoring 3. NP-complete sudoku satisfiability 4. NP-Hard traveling salesman 5. PSPACE quantified boolean formulas NP-Hard NP-complete NP P 5/27/2015 4

Satisfiability Literal: Boolean variable or its negation Clause: A disjunction of literals Conjunction: SAT given a conjunction of clauses, does it satisfy a truth assignment? 3-SAT special case of SAT where each clause contains exactly 3 literals 5/27/2015 5

Gadgets partial instances of problem X that are used to simulate objects in problem Y used to construct reductions from one problem to another o Start Gadget can be used to initialize a specific state 5/27/2015 6

Finish Gadget accessible only if the player is in the desired state 5/27/2015 7

Framework for NP-hardness The framework reduces from 3-SAT allowed not allowed 5/27/2015 8

Variable Gadget must force the player to choose one of two paths entering from one literal does not allow traversal back into the negation of the literal x x 5/27/2015 9

Clause Gadget accessible from the literal paths the player can perform some action that unlocks the gadget the check path traverses every Clause Gadget in sequence 5/27/2015 10

Crossover Gadget must allow traversal via two passages that cross each other no leakage can occur from the vertical to the horizontal path 5/27/2015 11

Super Mario NP-hardness 3-SAT MARIO Theorem It is NP-hard to decide whether the goal is reachable from the start of a stage in generalized Super Mario Bros. Related Work The Legend of Zelda Donkey Kong Country Metroid Pokemon 5/27/2015 12

Nintendo Entertainment System 8-bit processor 00001111 running at 1.79 MHz 2048 bytes of general purpose RAM fixed memory locations used for all the critical game facts 5/27/2015 13

Automating NES games video screen, sound effects are ignored notion of winning value going up lexicographic order World 1-2 p=1, q=2 World 2-1 p=2, q=1 (p 1,q 1 ) < (p 2,q 2 ) if p 1 =p 2 and q 1 < q 2 OR if p 1 < p 2 5/27/2015 14

learnfun the objective function is deduced from the player s inputs learnfun watches you play and figures out what it means to win find series of byte locations in memory that go up according to the lexicographic ordering 5/27/2015 15

playfun uses the gained knowledge from learnfun to play the game finds the optimal sequence of inputs to satisfy the objective function Greedy Approach search space is 2 8 different inputs, pick the best step single input rarely affects your progress 5/27/2015 16

Motifs look 10 frames into the future use the best scoring 10-keystroke motif still bad at avoiding enemies and jumps 5/27/2015 17

Time Travel pick 40 random futures (50-800 frames) pick (based on weight) which one to replay for the next 10 frames extend futures with random motifs when they become too short worst futures are replaced with new random futures reach consistency do combinations that worked and are likely to work again 5/27/2015 18

Backtracking local maximum improveme save a checkpoint occasionally reset to the beginning and generate some other replacement futures if the original sequence is the best, backtracking does nothing 5/27/2015 19

Performance 1 hour to calculate 1000 frames of output = 16 sec of gameplay most of the time is spent emulating NES code MARIONET network version of playfun utilizes multiple cores and potentially multiple computers to score futures master/slave 5/27/2015 20

Results Super Mario Pac-Man Bubble Bobble Tetris 5/27/2015 21

Future Work parameter reduction unsupervised learning better backtracking multiple players, multiple games 5/27/2015 22

Conclusion Nintendo Games are awesome and fun! can be used in serious topics produce real and interesting results Thank you for your attention 5/27/2015 23