From d8c5f136bf891dc12020a56e2a8ad542164cbf5e Mon Sep 17 00:00:00 2001 From: Vivek Gupta Date: Thu, 21 Dec 2017 15:34:20 +0530 Subject: [PATCH 1/2] added superellipse doc --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 328ec1a..8d7c339 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,14 @@ We are glad to partner with IIT Kharagpur as a part of the Kharagpur Winter of C * [Bird Migration](https://github.com/prateekiiest/Code-Sleep-Python#bird-migration) * [Social Network Analysis](https://github.com/prateekiiest/Code-Sleep-Python#social-network-analysis) -* [Prime](https://github.com/prateekiiest/Code-Sleep-Python#Prime) +* [Prime](https://github.com/prateekiiest/Code-Sleep-Python#prime) * [Website status check](https://github.com/prateekiiest/Code-Sleep-Python#website-status-check) * [Encryption-Techniques](#encryption-techniques) * [Inception Tic-Tac-Toe](https://github.com/prateekiiest/Code-Sleep-Python#inception-tic-tac-toe) * [Sprint](https://github.com/prateekiiest/Code-Sleep-Python#sprint) * [Floating Text](#floating-text) -* [Koch Curve](https://github.com/prateekiiest/Code-Sleep-Python#Koch-Curve) +* [Koch Curve](https://github.com/prateekiiest/Code-Sleep-Python#koch-curve) +* [Superellipse](https://github.com/prateekiiest/Code-Sleep-Python#superellipse) ---------------------------------- @@ -57,7 +58,7 @@ We are glad to partner with IIT Kharagpur as a part of the Kharagpur Winter of C Tic-Tac-Toe (or noughts and crosses) is a simple strategy game in which two players take turns placing a mark on a 3x3 board, attempting to make a row, column, or diagonal of three with their mark. In this homework, we will use the tools we've covered in the past two weeks to create a Tic-Tac-Toe simulator and evaluate basic winning strategies. -![](https://upload.wikimedia.org/wikipedia/commons/8/8e/TicTacToe-6549127nnXOp.gif) +![](https://upload.wikimedia.org/wikipedia/commons/8/8e/TicTacToe-6549127nnXOp.gif) Players soon discover that best play from both parties leads to a draw. Because of the simplicity of Tic-Tac-Toe, it is often used as a pedagogical tool for teaching the concepts of good sportsmanship and the branch of artificial intelligence that deals with the searching of game trees. It is straightforward to write a computer program to play Tic-Tac-Toe perfectly, to enumerate the 765 essentially different positions (the state space complexity), or the 26.830 possible games up to rotations and reflections (the game tree complexity) on this space. @@ -71,7 +72,7 @@ Hangman is a simple game where a player will guess a word letter by letter. ![](http://daramcq.github.io/img/hangman-game-5.png) -In this project, you will create a program that generates a random word that you must guess. +In this project, you will create a program that generates a random word that you must guess. **[CODE](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Hangman/code.py)** @@ -206,6 +207,18 @@ This program traces out a 4 level Koch curve. ---------------------------------------------------- +### Superellipse + +A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed curve resembling the ellipse, retaining the geometric features of semi-major axis and semi-minor axis, and symmetry about them, but a different overall shape. + +**[more info](https://en.wikipedia.org/wiki/Superellipse)** + +![](https://upload.wikimedia.org/wikipedia/en/2/24/Superellipse_anim.gif) + +**[CODE](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Superellipse/test.py)** + +---------------------------------------------------- + ## Getting started with Python New to Python? No problem! Take a look at the following resources: From 4ad92f6b75045871fe04da4dc9410597269ede1d Mon Sep 17 00:00:00 2001 From: Vivek Gupta Date: Fri, 22 Dec 2017 00:29:36 +0530 Subject: [PATCH 2/2] added cric notif doc --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d7c339..9086dc2 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ We are glad to partner with IIT Kharagpur as a part of the Kharagpur Winter of C * [Floating Text](#floating-text) * [Koch Curve](https://github.com/prateekiiest/Code-Sleep-Python#koch-curve) * [Superellipse](https://github.com/prateekiiest/Code-Sleep-Python#superellipse) +* [Cricket Notification](https://github.com/prateekiiest/Code-Sleep-Python#cricket-notification) ---------------------------------- @@ -150,7 +151,7 @@ The implementation of Sieve of Eratosthenes is used to find prime numbers. ---------------------------------------------------- -#### Website status check +### Website status check A simple website crawler to check the return code of a website. It returns with a message indicating whether the website is online, redirected, or not found. @@ -219,6 +220,16 @@ A superellipse, also known as a Lamé curve after Gabriel Lamé, is a closed cur ---------------------------------------------------- +### Cricket Notification + +A simple program to get the score and match status if India is playing. This information is obtained from the terminal. + +![](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRgwxUvr7AfngMuzr4a8tc69jexGPoPeSdCTiDZhvlXqgZTH_wxgg) + +**[CODE](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Cricket_Notification/cricket_notification.py)** + +---------------------------------------------------- + ## Getting started with Python New to Python? No problem! Take a look at the following resources: