{ "cells": [ { "cell_type": "markdown", "id": "686fc7cb", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# Card guessing game" ] }, { "cell_type": "markdown", "id": "8cfc4a13", "metadata": { "slideshow": { "slide_type": "-" }, "tags": [ "remove-cell" ] }, "source": [ "**CS1302 Introduction to Computer Programming**\n", "___" ] }, { "cell_type": "code", "execution_count": 1, "id": "b2ad0ce8", "metadata": {}, "outputs": [], "source": [ "# Run this cell first to initialize the environment\n", "import random # for shuffling of the cards\n", "from collections import namedtuple # for naming the cards" ] }, { "cell_type": "markdown", "id": "26204da2", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "## Rules of the game" ] }, { "cell_type": "markdown", "id": "7410accb", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "Consider a deck of 52 cards:\n", "