Code Monkey home page Code Monkey logo

textbased-2048's Introduction

textbased-2048

Name: LeeAnn Chu Contact: [email protected] Date: 9.20.20

My lab partner is Tasheem Brown and we worked together on the concepts of this lab namely my swipe() method and my move() method. We also worked on the opening screen together

"Swipe" the board by using the normal wasd keys. 
r to restart
q to quit.

I'm really proud of how those two methods turned out, I hadn't considered going into this how many different scenarios there would be in this game and how important the order of operations would be. These are more detailed notes on what the algorithms are doing behind the scenes

https://imgur.com/a/sTrI2fi

Utilities designs the methods I call upon in the text.2048 file. It's all pretty straight forward, and mostly commented throughout.

As for text2048 it handles what's printed to the console, and a lot of the extra requirements thrown on top of everything else. I disagree with a lot of the things the instructor has us print out, like having to print the board even if the move made was invalid, or if you're trying to quit or restart the game.

Lastly, in the requirements he specifies that printing if a move is valid after every keypress, so even when you're entering confirmation for quitting you still have to see the "INVALID MOVE" text. Which seems really redundant, but that's what's written in the project requirements.

	"INVALID" moves are considered moves that do not change any of the positions of the
	numbers on the board. (this includes quitting, resetting, and invalid inputs)

textbased-2048's People

Contributors

leeann-chu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.