Michael Eboka (@Giv3rr) header
Michael Eboka (@Giv3rr) profile picture

Software Engineer | Trader | B.Eng Computer Engineering Turning ideas into code & markets into opportunities. 🚀

Where I need to be
Joined October 2022
Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)Photo by Michael Eboka (@Giv3rr)
Day 52: Let's Play I thought polishing 2048 would be easy, not knowing I'd be back at the drawing board for the tile movement. I wondered why the movement felt scattered, not knowing polishing was the fix. It's not easy, it's work to settle down and learn. So,See you soon.
Day 51: Let's Play The game is hosted now, and swipe works on mobile. Try it on your phone: swipe anywhere on the screen to slide the tiles. Next up: polishing it. See you soon... games-challenge.aces-portal.…
1
16
Day 51: Let's Play The game is hosted now, and swipe works on mobile. Try it on your phone: swipe anywhere on the screen to slide the tiles. Next up: polishing it. See you soon... games-challenge.aces-portal.…
1
1
3
39
Day 50: Let's Play The rules are set, tested and passing, so today I drew the board and added the keyboard controls. Arrow keys work on laptop for now. I tried playing it and couldn't win 😔 Up next, swipe controls for mobile, then the sliding animation. See you soon.
1
3
44
1/5 Day 49: Let's Play As promised, I spent time understanding the rules of 2048. They're interesting and very strict. The game starts with a 4x4 grid and two tiles. You swipe to slide and merge equal tiles, chasing the 2048 tile.
1
1
30
4/5 After every move, the game checks if the grid changed. If it did, a new 2 or 4 appears on a random empty cell. If not, nothing happens. Won = a 2048 tile exists. Over = no direction can change the grid.
1
1
3
5/5 It became clearer once I saw how the rules connect to each other. Up next: drawing the board and watching them work. See you soon...
1
3
Michael Eboka retweeted
if you believe in God, repost this🔁❤️
65
304
7
1,305
13,482
Day 48: Let's Play Built the rules for 2048 today. If I say I fully understand them, I'd be lying. I get a few parts, but I want to get to the bottom of it. So I'm pausing before the grid and movement stage to understand and explain it properly. Soo,see you soon...
Day 47: Let's Play Moving to the next game, 2048. Focusing on the build and the concepts behind it. What I'll build with: • 4x4 grid • one slide-and-merge rule for a row, reused for all 4 directions • new tiles on a random empty cell • game over = no move changes the board
1
1
2
37
Michael Eboka retweeted
IF YOU’RE UNASHAMED OF JESUS, REPOST THIS🔁✝️❤️
285
3,191
23
9,627
94,360
Day 47: Let's Play Moving to the next game, 2048. Focusing on the build and the concepts behind it. What I'll build with: • 4x4 grid • one slide-and-merge rule for a row, reused for all 4 directions • new tiles on a random empty cell • game over = no move changes the board
1
1
1
2
80
Day 46: Let's Play Touch-up done. The snake looks more like a snake, and with no grid lines the board looks like a room. Added best score, pause (it auto-pauses when you leave), and speed: it gets faster as you eat. Laptop: arrow keys. Phone: swipe. games-challenge.aces-portal.…
1
3
70
1/3 Day 45: Let's Play 🐍 One of my favorite games growing up isn't as complicated as it looks. It's just cells changing color. The board has 256 cells. At the start, only 4 are occupied: 3 for the snake and 1 for the food. 👇
1
1
48
2/3 The board doesn't even store the snake. Every frame, each cell asks: "Am I part of the snake?" Yes means snake colour, no means plain. When it moves, the colour shifts to the new head and the old tail goes plain. When it eats, the tail stays, so it grows.
1
26
3/3 Steering works now too: keyboard, swipe on the board, and on-screen buttons for phones. A small queue stops two quick key presses from turning the snake into itself. Play it here: games-challenge.aces-portal.… Touch-up next. See you soon...
2
Day 44: Let's Play 🐍 Snake is moving on my screen now, and it's running in React. Today I built the game loop. The snake doesn't really move. The game is like a flipbook: every picture is one frame, and tick() makes the next frame. A timer calls tick() every 150ms and React draws each frame. When the frames change fast, your eyes see a moving snake. The rules don't even know React exists. In each frame, a new head is added at the front and the tail is removed from the back. When the snake eats, the tail stays, and that's how it grows. Biggest lesson: the old timer must be cleaned up, or another timer is added on every restart. Two timers meant two steps per beat, so the snake kept getting faster. Food placement: the game first lists all the empty cells, then picks one at random, so the food can never land on the snake. Watch the video, every restart gives a new food spot. For now the snake only goes right. Steering is coming next. See you soon...
Day 43: Let's Play 🐍 Starting a new game today: Snake. It was on hundreds of millions of button phones back in the day. I spent time learning the ideas behind it and how it will run. What I've learnt so far: • Discrete-time simulation: the game runs in steps. A function called tick() runs many times every second, and each tick moves the snake one step. • Deque (double-ended queue): a list where you can add or remove at both ends. Each move adds a new head and removes the tail. When the snake eats, the tail stays, and that is how it grows. • Finite State Machine: the game is always in one state: ready, playing, paused, over or won. • Collision detection: checking if the snake hits a wall or its own body. • Random sampling: food is placed on a random free cell, so it never lands on the snake. All of this goes into a rule book (small helper functions) kept separate from the screen. Amazing to learn. Can't wait for what's next. See you soon...
1
2
64
Day 43: Let's Play 🐍 Starting a new game today: Snake. It was on hundreds of millions of button phones back in the day. I spent time learning the ideas behind it and how it will run. What I've learnt so far: • Discrete-time simulation: the game runs in steps. A function called tick() runs many times every second, and each tick moves the snake one step. • Deque (double-ended queue): a list where you can add or remove at both ends. Each move adds a new head and removes the tail. When the snake eats, the tail stays, and that is how it grows. • Finite State Machine: the game is always in one state: ready, playing, paused, over or won. • Collision detection: checking if the snake hits a wall or its own body. • Random sampling: food is placed on a random free cell, so it never lands on the snake. All of this goes into a rule book (small helper functions) kept separate from the screen. Amazing to learn. Can't wait for what's next. See you soon...
1
1
1
112
Day 42: Let’s Play It is good to always test what you build thoroughly, and I thank God I did. I wouldn’t have noticed this if not for a very special someone 😉. Even after I had moved on to another game, and was already preparing to build the next one in a different programming language, I still had to take a few steps back without even knowing it. I was about to play Battleship two-player mode with the very special someone 😉 and realized that the room meant for two players kept showing as full whenever the second player tried to join through the link sent. So I decided to give up my sleep to find out what the problem was. I learnt that whenever you paste a link on WhatsApp, Telegram and the rest, a bot opens the link first to build a preview. That was what kept making the room full: the bot took the second player’s seat just by doing its inspecting duties 😂. It was so funny when I found out. I’m glad I ran into this and was able to fix it. Now the bot can still open the link, but it can’t take a seat, because joining needs a button press (Join as Player 2). It’s like a waiting room, but with a door. Come and play it, grab a friend and send them the link 👇 games-challenge.aces-portal.… This was fun. See you soon..
1
3
76
Day 41: Let’s Play games-challenge.aces-portal.… Sudoku is done and it’s live! 🎉 After the generator, I spent today on polishing. Here is what I added and what each one does: ⏱ Timer. It saves the time you started and works out the time from that, instead of counting every second. So it stays correct even if the phone is slow. It stops when you finish the puzzle. ✏️ Pencil notes. You can write small numbers in a cell to remember what you think can go there. When you put a real number in a cell, its notes are cleared, and that number is also removed from the notes in its row, column and box. 🪄 Fill notes. One button writes all the possible numbers in every empty cell for you. You can clear them again too. 📱 Phone-friendly number pad. Big buttons in one row, and a number dims once all nine of it are on the board. 💾 Saved progress. If you refresh the page, your numbers, notes and time are still there. It also has three levels (easy, medium, hard), a hint button, a “check my work” button and a solver. This one taught me a lot, especially about how a computer checks that a puzzle has only one answer. I’m proud I didn’t skip it. See you soon..
1
2
49