From 75f58bbd743a8aab5fcf475a3fd1b070ace59d2c Mon Sep 17 00:00:00 2001 From: BinBin He Date: Sun, 29 Oct 2017 10:08:46 -0500 Subject: [PATCH 1/2] Included project name and descriptions to README The projects added to README are: 1. Prime finder 2. Website checker --- README.md | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d2d9839..9ff8474 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,17 @@ New to Python? Take a look [here](https://github.com/prateekiiest/Code-Sleep-Pyt * [Translations of Hamlet](https://github.com/prateekiiest/Code-Sleep-Python#translations-of-hamlet) * [Classification](https://github.com/prateekiiest/Code-Sleep-Python#classification) * [Whisky Classification](https://github.com/prateekiiest/Code-Sleep-Python#whisky-classification) -* [Bird Migration](https://github.com/prateekiiest/Code-Sleep-Python#whisky-classification) -* [Social Network Analysis](https://github.com/prateekiiest/Code-Sleep-Python#whisky-classification) - +* [Bird Migration](https://github.com/prateekiiest/Code-Sleep-Python#Bird_mirgation) +* [Social Network Analysis](https://github.com/prateekiiest/Code-Sleep-Python#social_network) +* [Prime](https://github.com/prateekiiest/Code-Sleep-Python#Prime) +* [Website status check](https://github.com/prateekiiest/Code-Sleep-Python#website_status_check) ---------------------------------- ### 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) - -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. +![](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. **[CODE](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/tic-tac-toe/code.py)** @@ -100,6 +97,24 @@ Homophily is a network characteristic. Homophily occurs when nodes that share an ---------------------------------------------------- +### Prime number finder + +The implementation of Sieve of Eratosthenes is used to find prime numbers. + +**[Code](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Prime/code.py)** + +---------------------------------------------------- + +#### Website status check + +A simple website crawler to check the return code of a website. It returns with a message on whether the website is online, redirected, or not found. + +**[Code](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/website_status_check/website_status_check.py)** + + +---------------------------------------------------- + + ## Getting started with Python New to Python? No problem! Take a look at the following resources: From d7c34b8b7ecb2b28d9feef36dc34427e21e58a20 Mon Sep 17 00:00:00 2001 From: BinBin He Date: Sun, 29 Oct 2017 10:26:43 -0500 Subject: [PATCH 2/2] Added images to accompany project descriptions in README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9ff8474..4a47dc0 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,8 @@ Homophily is a network characteristic. Homophily occurs when nodes that share an The implementation of Sieve of Eratosthenes is used to find prime numbers. +![](https://i.pinimg.com/564x/cc/c7/55/ccc7554b4ae9ee9781b752832224f3ef--sieve-of-eratosthenes-prime-factorization.jpg) + **[Code](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/Prime/code.py)** ---------------------------------------------------- @@ -109,6 +111,8 @@ The implementation of Sieve of Eratosthenes is used to find prime numbers. A simple website crawler to check the return code of a website. It returns with a message on whether the website is online, redirected, or not found. +![](http://yootheme.com/media/docs/assets/images/warp/error_pages_404.jpg) + **[Code](https://github.com/prateekiiest/Code-Sleep-Python/blob/master/website_status_check/website_status_check.py)**