Giter Site home page Giter Site logo

2048's Introduction

Hi there!

I am...

  • ๐Ÿ™‚ Abraham "Yeedle" Neuwirth (he/him)
  • ๐Ÿ’ป proficient in Python, Java/C#, and Javascript/TypeScript, SQL, and a dabbler in many other languages
  • ๐Ÿ–ฅ๏ธ Highly experienced with Vue.js, ReactJS, NestJS, Express.js, FastAPI, PostgreSQL and many more
  • ๐Ÿ”ฌ Iโ€™m currently working as a full stack software engineer at Formation Bio
  • ๐ŸŒฑ Iโ€™m currently learning Go
  • ๐Ÿ“ซ Reach me by email or linkedin

2048's People

Contributors

modicohen avatar yeedle avatar

Watchers

 avatar  avatar

Forkers

modicohen

2048's Issues

Values after shifts are incorrect

As @yeedle noticed, my current algorithm doesn't provide the correct values for tiles that were moved via the shiftZeros() method. The core of the issue is that in order for my mergeRow() algorithms to work I implemented shiftZeros() so that it swaps the actual tile on the grid and not just the value. The problem is, since it only swaps the reference to the tile, the tiles are not actually swaped from the GUI's perspective.

To address this issue, I decided that the most straight-forward, efficient approach would be to code an algorithm that would shift and merge tiles in one pass. Although it will increase the code's complexity, it will be the simplest (and most efficient) approach to allow values to be merged and shifted between tiles while marking the correct transition values in the original tile.

What do you think, @yeedle?

Arc Height and Width

Every tile has an arc height and an arc width, which is very similar to the border-radius property of CSS. In the original implementation a border radius of 3px is used. Should we keep it as close to the original as possible, or should we make it more sleek looking by rounding the edges? What do you think, @modicohen?

Rotating the board as a method for movements

It makes the code much clearer and less complicated. However, it might be too heavy for smooth processing since every movement besides 'left' will cause the board to rotate 4 times. It is something that we will have to test. What say you, @yeedle ?

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.