Software_clan | Alpha Sprint Log 2 _ Player Login, Profile Cards, Friends, and Campus Squads

software_clan software_clan 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Alpha Sprint Log 2 | Player Login, Profile Cards, Friends, and Campus Squads

Assignment informationDetails
CourseEE308FZ Software Engineering · 2601_FZU-MU_SE
Teamsoftware_clan
Assignment requirementsAlpha Sprint assignment
Course reporting windowNovember 23–24, 2026 · Development log 2 of 4
ObjectiveTrace how two players establish their identities, become friends, and use a campus squad code to arrange their next match.
Other referencesLive workbench · Development repository

A squad captain has four players and needs a fifth. A student browsing the lobby claims the team code. What should the captain see now? The in-game roster is still four out of five: the student has expressed interest and can use the code to join in CS2. Keeping those two facts separate was one of the most important decisions in our social features.

Our first log covered a single player’s aim-training session. This one follows the same workbench across two players’ accounts. The commits below record the original Alpha development. We captured the live pages and ran the backend checks on November 21 while preparing this entry.

Who built the social features

Team memberContributionImplementation record
Chenyu Lin (Clancy-lov-sq)Implemented the authentication service and profile-card backend, including public cards, editable profile data, and avatar handling.Profile and authentication service PR
Shiyu Qian (q1527700693-afk)Set up the login project structure, fixed nickname persistence during registration, and adjusted profile fields including the Steam friend code. Implemented player search, friendship requests, and the squad lobby with its captain and claimant operations.Initial backend PR · Nickname fix · Profile fields · Friends · Squads
Yiyao Guo (hajiyao)Built the login, profile, player, friend, and squad interfaces and connected their actions to the backend. These screens let a player edit a card, distinguish incoming from outgoing requests, and see which squad actions are available.Frontend release check-in · Frontend feature modules

Login gives each action an owner

Registration stores a password hash and preserves the nickname chosen by the player. A successful sign-in returns a JWT. The frontend uses the current-user endpoint to recover the player’s identity, and authenticated requests let the server determine who is editing a card, accepting a request, or publishing a squad. One early integration fix was small but visible: a nickname entered during registration needed to survive the trip to the player’s profile. Authentication implementation · Registration fix

img

Figure 1. The deployed login page. In a fresh browser session, opening either the personal profile or friends page sent us to login with the requested destination preserved in the URL.

The profile card supplies the details a teammate needs: a nickname, avatar, signature, and optional gaming-platform identifiers. A player can change a Steam friend code independently of other fields. A public card can be read without a token, while editing a profile or uploading an avatar requires an authenticated account. The avatar tests also check a detail that is easy to miss in a screenshot: replacing an image removes the old file, and deleting it clears the stored reference. Profile service · Profile tests

img

Figure 2. Alpha Alex’s personal profile on the deployed workbench after signing in.

One friend request, two views

Players can find one another by username or nickname. The two accounts need different controls even though they are looking at the same request. The backend stores the pair together and tracks the direction of the pending request. Our two-account tests exercise the following sequence. Friend service · Friendship tests

StepAlex, the senderBo, the recipient
Alex sends a requestSees an outgoing request and can cancel it. A duplicate request is rejected.Sees an incoming request and can accept or reject it.
Bo acceptsBo appears in Alex’s friend list.Alex appears in Bo’s friend list.
Either player removes the friendshipThe relationship disappears from both lists.Either player can initiate a new request later.

The important check comes immediately after acceptance. Reading both accounts’ friend lists catches a one-sided update that would look correct from the recipient’s screen alone.

We registered two dedicated accounts on the live server, Alpha Alex and Alpha Bo, and signed into separate browser sessions. Alex sent Bo a request through the deployed API. Bo’s incoming tab showed one request from Alex and offered both Accept and Reject.

img

Figure 3. Before acceptance, Bo had zero friends and one incoming request.

We accepted the request as Bo through the same API, then reopened the friends page in each session. Alex’s list showed Bo, Bo’s list showed Alex, and both friend counters read 1.

img

Figure 4. Alex’s view after Bo accepted. We also checked the reciprocal entry while signed in as Bo.

From a public listing to a squad code

The live lobby allows visitors to browse recruitment posts and filter by mode. During our visit it showed zero recruiting squads. Its instructions still made the sequence clear: claim the code, join the room in CS2, then let the captain mark the squad as departed. Live squad lobby

img

Figure 5. The public lobby on November 21. The workbench reported frontend v1.3.2, build web-mwp1ul9l.

We checked the populated case against the release backend using its isolated test database. A captain publishes a four-player roster and a team code. The listing is public, but a visitor cannot read the code. Once an authenticated player claims it, the service reveals the code to that player and records a claimant. The captain’s declared roster stays at four. Cancelling the claim hides the code again. If the captain removes the claimant, that player cannot reclaim the same listing. Marking the squad as departed removes it from recruitment and prevents further claims. Lobby routes · Squad implementation

Verification results

We ran the following command in the backend directory of release snapshot 17713506. The tests started a local HTTP service and exercised the API with test accounts. The screenshots above came from the deployed workbench.

node --test tests/profile.test.js tests/friends.test.js tests/lobby.test.js
SuitePassedExamples checked in this run
Accounts and profile cards24Duplicate username, saved nickname, token requirement, public card, avatar replacement and deletion.
Friends11Search results from both perspectives, duplicate requests, accept/reject/cancel permissions, removal from both lists.
Campus squads14Publishing a 4/5 roster, code visibility, claim cancellation, captain permissions, departure and expiry.
Total490 failed, 0 skipped.

Project burn-up

img

Figure 6. The four milestones follow the same definition as Log 1. Personal cards were implemented by October 17. By October 23 both the squad lobby and player search/friend relationships were in the repository, bringing this workstream to its milestone. The chart uses original development dates; the November reporting schedule determines the order in which we describe each feature. Profile milestone · Squad milestone · Friends milestone

The third log follows a match replay from file upload through parsing to the round and player statistics displayed in the workbench.

...全文

相关推荐

VMware Workstation Pro 25H2u1 深度解析:Win11 24H2与Linux 6.12虚拟化适配

虚拟化技术是现代开发、测试与安全研究的基础能力,其核心在于宿主机硬件(VT-x/AMD-V)、操作系统内核(如Windows Hypervisor Platform、Linux KVM)、虚拟化软件(如VMware Workstation)三者间的协同。随着Windows 11 24H2引入hvix64.sys驱动重构和Linux内核6.12更新DMA管理机制,旧版虚拟化工具频繁出现蓝屏、断网、启动失败等问题。VMware Workstation Pro 25H2u1通过重写VMM握手协议、新增vmxnet

weixin_34032792

AutoHotkey v2打包EXE实战指南:从脚本到生产级可执行文件

AutoHotkey(AHK)是一种轻量级自动化脚本语言,广泛用于Windows办公提效与RPA场景。其核心原理是通过解释器动态执行文本脚本,但这也导致天然缺乏可移植性与环境隔离能力。将AHK脚本打包为EXE,本质并非编译为机器码,而是将脚本内容、图标、配置等资源嵌入预编译的引导stub中,并重定向运行时路径与权限上下文。这一过程显著提升部署兼容性、绕过企业安全策略限制,并支持数字签名、管理员提权、资源加密等生产必需能力。尤其在AHK v2.0.12版本中,Ahk2Exe工具链重构了打包机制,强调资源注入、

cijing9237

Windows下Podman安装全链路指南:WSL2环境配置与优化

Podman 是一款无守护进程、支持 rootless 运行的容器引擎,其核心原理基于 Linux 命名空间和 cgroups 实现隔离,技术价值在于替代 Docker Desktop 实现轻量、安全、开源的本地容器开发。在 Windows 平台,Podman 无法独立运行,必须依托 WSL2 提供的完整 Linux 内核能力——这决定了所有安装问题本质是 WSL2 环境就绪性问题。典型应用场景包括前端/后端开发者在 Windows 上无缝运行 docker-compose.yml、企业 DevOps 团队

weixin_30608503

Ubuntu 16.04 部署 GitLab 12.6.4 原生安装实战指南

GitLab 是一套深度集成的 DevOps 协作平台,其核心依赖 PostgreSQL、Ruby 运行时与系统级服务编排机制。在老旧但广泛存在的 Ubuntu 16.04 环境中,官方 Omnibus 包因 systemd 版本断层、Ruby 语法兼容性及 PostgreSQL 9.5 缺失 JSONB 支持而频繁失败,导致 'http 502'、'login failed'、'保护分支不起作用' 等高频故障。本文聚焦原生部署路径,详解如何绕过包管理陷阱,手动构建兼容栈:基于系统 Ruby 2.3.1、编

林尧彬

Fedora 19 GNOME 3.8 + TigerVNC 1.2 远程桌面部署指南

GNOME 远程桌面是 Linux 系统远程图形化运维的核心能力,其本质依赖于会话管理(如 D-Bus 总线初始化)、窗口管理器(如 Mutter)与 VNC 服务(如 Xvnc)的深度协同。在老旧系统中,GNOME 3.8 的会话机制与 TigerVNC 1.2 的启动逻辑存在关键兼容性差异:前者不通过 systemd --user 而依赖 dbus-launch 手动注入会话总线,后者需精确匹配 X11 启动流程与环境变量隔离策略。这种技术组合虽已退出主流支持,但在工业控制、嵌入式仿真及遗留系统维护等场

weixin_33938733
评论
收藏 已收藏
分享
返回顶部