{
  "id": 1213654,
  "title": "My first project",
  "url": "https://urgent.news/2026/08/16/my-first-project",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-16T06:08:22.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/tjuzo/my-first-project-pl4"
  },
  "original_language": "en",
  "account": "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.\n\nTo 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.\n\nThe 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.",
  "summary": "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…",
  "key_points": [
    "Author's first Python project is a card game called Tongits",
    "Game for 2-3 players with 12 cards each starting hand",
    "Program enforces game rules through user inputs and loops"
  ],
  "editors_take": "The author's creation of a basic Tongits card game in Python marks a foundational step in programming, showcasing their ability to design and implement a simple game with user input and logical rules.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}