Skip to content

added superellipse doc #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,16 @@ We are glad to partner with IIT Kharagpur as a part of the Kharagpur Winter of C
* [Sprint](https://github.com/prateekiiest/Code-Sleep-Python#sprint)
* [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)

----------------------------------

### Tic-Tac-Toe

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.

Expand All @@ -73,7 +75,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)**

Expand Down Expand Up @@ -151,7 +153,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.

Expand Down Expand Up @@ -208,6 +210,28 @@ 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)**

----------------------------------------------------

### 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:
Expand Down