Urgent.News

650+ sources. One page. See who else covered it.

Editions

Tech

My first project

What is it? My program uses python to run a basic card game that I like to play. The game is called Tongits and this is how it is played -> Rules The game can be played with 2-3 players. Each player will be dealt twelve cards. For each player's turn, a player must either pick up a card from the deck or from the top of the discard pile. They will then look at their hand to see if they can either…

This is the author's first project, a basic card game program written in Python. The game is called Tongits and can be played with 2-3 players. Each player starts with twelve cards. During their turn, a player can either pick a card from the deck or the top of the discard pile. The player then examines their hand to see if they can form a "house," which consists of three or more cards of the same suit in consecutive order or the same number in different suits. The game proceeds until a player has no cards remaining in their hand.

To create the game, the author first developed a class to generate and shuffle a deck of cards, which is then dealt to the specified number of players. The player's names are collected using user input, and each player's hand is represented as a dictionary, with the player's name serving as the key and the hand as the value. A deck class was created to enable the creation of a new, game-specific deck, which is then utilized in two additional functions.

The first function, startGame(), initializes a fresh game by creating a tailored deck based on the provided number of cards to deal and add. The second function, playTongits(), calls the startGame() function to generate a new game and deck, then proceeds with the game's logic by employing a for loop that continues until a player's hand is empty. The game's rules are enforced through a series of user inputs, for loops, and nested functions. The author invites feedback on how to enhance the program.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

So…#WTH is State Machine Replication?

Every replicated database, Kafka partition, and Raft cluster relies on one rule: if deterministic replicas start identical and apply identical commands in an identical order, they stay identical.

Un PDF piégé transforme l'agent IA d'Atlassian en espion

L'essentiel La société de sécurité PromptArmor a documenté une injection de prompt indirecte dans Rovo, l'agent IA d'Atlassian connecté à Jira et Confluence.

  • Atlassian's Rovo AI agent has hidden prompt injection vulnerability.
  • Attackers can exfiltrate internal tickets and documents without user confirmation.
  • Vulnerability discovered on May 23, 2026, still open on August 5, 2026.

How to Build a Web App in 2026 - The UK Developer's Guide

Search interest in "how to build a web app" has grown 40% in the past two years, and the searches are getting more specific: people are not just asking whether it is possible, they want to know how…

  • In 2026, demand for web apps increased by 40% over two years
  • Define user stories to identify genuine load-bearing features
  • Choose tech stack like Next.js, Node.js, PostgreSQL, Cloudflare for MVP

Code Review From the Terminal and CI, No MCP Client Required

A month ago I shipped aicraft-code-review , an MCP server that reviews code locally. This week I added a CLI mode — because not everyone wants to wire up an MCP client just to check a diff.

  • Tool allows code review in terminal without MCP client
  • Three modes: Claude Code, Cursor, or CLI via mcp-code-review
  • Compatible with CI systems, outputs 0/1/2 exit codes

More from Sunday 16 August →