Tagged articles
13 articles
Page 1 of 1
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 28, 2025 · Artificial Intelligence

How to Build an AI‑Powered MCP Server to Control a Snake Game

This guide explains how to set up a Model Context Protocol (MCP) server, define its resources, tools, and prompt templates, implement both manual and WebSocket versions of a Snake game client, create MCP clients in TypeScript and Python, debug with the inspector, and integrate the server with AI agents for autonomous gameplay.

AIMCPServer
0 likes · 45 min read
How to Build an AI‑Powered MCP Server to Control a Snake Game
php Courses
php Courses
Feb 11, 2022 · Backend Development

Installing the PHP UI Extension and Running a Snake Game Example

This tutorial explains how to install the PHP UI (ui) extension on Linux, configure it on Windows, and use it to run a simple Snake game written in PHP, providing step‑by‑step commands, required libraries, and testing instructions.

GUISnake GameUI extension
0 likes · 4 min read
Installing the PHP UI Extension and Running a Snake Game Example
MaGe Linux Operations
MaGe Linux Operations
Sep 26, 2021 · Game Development

Build a Classic Snake Game with Python and Pygame

This tutorial walks through creating a fully functional Snake game in Python using Pygame, covering window setup, snake and food initialization, directional controls, movement logic, collision detection, scoring, speed scaling, and game‑over conditions, all illustrated with code snippets and diagrams.

Game DevelopmentPygameSnake Game
0 likes · 5 min read
Build a Classic Snake Game with Python and Pygame
ByteFE
ByteFE
Jun 1, 2021 · Frontend Development

Embedding a Snake Game into Quill Editor Using DevUI

This article demonstrates how to integrate a canvas‑based snake game into the Quill rich‑text editor by creating a custom toolbar button, defining a SnakeBlot, registering it with Quill, and inserting the game as an embed, all within the DevUI framework for enterprise front‑end solutions.

Custom ToolbarDevUIQuill
0 likes · 9 min read
Embedding a Snake Game into Quill Editor Using DevUI
Python Programming Learning Circle
Python Programming Learning Circle
May 17, 2021 · Game Development

Design and Implementation of a Snake Game Using Python and Pygame

This article presents a comprehensive overview of a Snake game project built with Python and Pygame, detailing game rules, overall design, required libraries, core functions such as food generation, movement, collision detection, mode handling, and includes the complete source code for both normal and wall‑through modes.

Game DevelopmentPygameSnake Game
0 likes · 19 min read
Design and Implementation of a Snake Game Using Python and Pygame
Tencent Cloud Developer
Tencent Cloud Developer
Aug 22, 2018 · Game Development

Building an AI-Enhanced Snake Game in C

This tutorial guides you through building a classic Snake game in C using a top‑down design that includes a refresh loop, keyboard or AI‑generated commands, structures for snake, food, and map, queue‑based body handling, random food placement, hard‑coded maps, collision detection, and heuristic AI to steer the snake toward food while avoiding self‑collision and obstacles.

AI heuristicsC programmingSnake Game
0 likes · 4 min read
Building an AI-Enhanced Snake Game in C
ITPUB
ITPUB
Aug 4, 2017 · Artificial Intelligence

How to Build an AI‑Powered Snake Game in C++ Using Hamiltonian Cycles

This article introduces a C++ Snake game project from GitHub that showcases two AI approaches—Hamiltonian‑cycle based and graph‑search based—to let the snake fill the entire map, and provides step‑by‑step setup, keyboard controls, and detailed algorithm explanations.

AIC++GitHub
0 likes · 7 min read
How to Build an AI‑Powered Snake Game in C++ Using Hamiltonian Cycles