Samsung Electronics

company
Verified

AI & ML interests

AI, Deep Learning

Recent Activity

guychuk  new activity about 1 month ago
Samsung/samsum:call-dataset
guychuk  new activity about 1 month ago
Samsung/samsum:Upload 3 files
View all activity

Samsung's activity

eienmojiki 
posted an update 10 days ago
view post
Post
1359
👀 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🐧
guychuk 
in Samsung/samsum about 1 month ago

call-dataset

#8 opened 5 months ago by
ahmedanwer

Upload 3 files

#10 opened 3 months ago by
Krazybeautiful85

Upload 3 files

3
#11 opened 3 months ago by
Krazybeautiful85
DarrenLee 
updated a Space over 1 year ago