Koga 子が's picture

Koga 子が

eienmojiki

AI & ML interests

None yet

Recent Activity

liked a model about 4 hours ago
Infinigence/Megrez-3B-Omni
liked a Space about 20 hours ago
groqcin/Qoc-Photo-Upscaler-Restoration-Enhancer-Ai
liked a Space about 21 hours ago
argilla/synthetic-data-generator
View all activity

Organizations

Stanford AI's profile picture AI FILMS's profile picture Samsung Electronics's profile picture Zhejiang University's profile picture MusicAI's profile picture OpenVINO Toolkit's profile picture LLMs's profile picture Gradio-Themes-Party's profile picture scikit-learn's profile picture DeepGHS's profile picture Open-Source AI Meetup's profile picture AMD's profile picture lora concepts library's profile picture Platzi Community's profile picture Keras Dreambooth Event's profile picture University of Michigan's profile picture Stable Diffusion Dreambooth Concepts Library's profile picture The Waifu Research Department's profile picture Musika's profile picture AI Indonesia Community's profile picture Blog-explorers's profile picture OpenSky's profile picture Tensor Diffusion's profile picture huggingPartyParis's profile picture That Time I got Reincarnated as a Hugging Face Organization's profile picture ZeroGPU Explorers's profile picture Project Fluently's profile picture Women on Hugging Face's profile picture MLX Community's profile picture Narra's profile picture Social Post Explorers's profile picture C4AI Community's profile picture Dev Mode Explorers's profile picture Refine AI's profile picture Chinese LLMs on Hugging Face's profile picture Stable Diffusion Community (Unofficial, Non-profit)'s profile picture Hugging Face for Legal's profile picture Hugging Face Discord Community's profile picture Nerdy Face's profile picture The "Cozie" Tower's profile picture

Posts 1

view post
Post
1389
👀 Introducing 2048 Game API: A RESTful API for the Classic Puzzle Game 🧩

I'm excited to share my latest project, 2048 Game API, a RESTful API that allows you to create, manage, and play games of 2048, a popular puzzle game where players slide numbered tiles to combine them and reach the goal of getting a tile with the value of 2048.

⭐ Features
Create new games with customizable board sizes (3-8)
Make moves (up, down, left, right) and get the updated game state
Get the current game state, including the board, score, and game over status
Delete games
Generate images of the game board with customizable themes (light and dark)

🔗 API Endpoints
POST /api/games - Create a new game
GET /api/games/:gameId - Get the current game state
POST /api/games/:gameId/move - Make a move (up, down, left, right)
DELETE /api/games/:gameId - Delete a game
GET /api/games/:gameId/image - Generate an image of the game board

🧩 Example Use Cases
- Create a new game with a 4x4 board:
curl -X POST -H "Content-Type: application/json" -d '{"size": 4}' http://localhost:3000/api/games

- Make a move up:
curl -X POST -H "Content-Type: application/json" -d '{"direction": "up"}' http://localhost:3000/api/games/:gameId/move

- Get the current game state:
curl -X GET http://localhost:3000/api/games/:gameId

💕 Try it out!
- Demo: eienmojiki/2048
- Source: https://github.com/kogakisaki/koga-2048
- You can try out the API by running the server locally or using a tool like Postman to send requests to the API. I hope you enjoy playing 2048 with this API!

Let me know if you have any questions or feedback!

🐧 Mouse1 is our friend🐧

datasets

None public yet