https://wikis.swarthmore.edu/ENGR005_2012/api.php?action=feedcontributions&user=Mhirsh1&feedformat=atomENGR005_2012 - User contributions [en]2024-03-28T19:09:16ZUser contributionsMediaWiki 1.26.3https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2166Matlab Blackjack Report2012-12-14T19:42:08Z<p>Mhirsh1: /* Appendices */</p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
The code for the blackjack simulator and the functions can be found in this zip file. All of the code has comments.<br />
<br />
[[File:MATLABBLACKJACK.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2165Matlab Blackjack Report2012-12-14T19:41:48Z<p>Mhirsh1: /* Appendices */</p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
The code for the blackjack simulator and the functions can be found in this zip file. All of the code has comments.<br />
<br />
[[File:MATLAB_BLACKJACK.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2164Matlab Blackjack Report2012-12-14T19:41:36Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
The code for the blackjack simulator and the functions can be found in this zip file. All of the code has comments.<br />
[[File:MATLABBLACKJACK.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2163Matlab Blackjack Report2012-12-14T19:40:23Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
[[File:MATLABBLACKJACK.zip | Matlab Code for Blackjack simulator]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2162Matlab Blackjack Report2012-12-14T19:38:51Z<p>Mhirsh1: /* Appendices */</p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
[[File:MATLABBLACKJACK.zip| Matlab Code for Blackjack simulator]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=File:MATLABBLACKJACK.zip&diff=2161File:MATLABBLACKJACK.zip2012-12-14T19:37:55Z<p>Mhirsh1: </p>
<hr />
<div></div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2160Matlab Blackjack Report2012-12-14T19:37:36Z<p>Mhirsh1: /* Appendices */</p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
[[File:MATLABBLACKJACK.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=File:Example.jpg&diff=2159File:Example.jpg2012-12-14T19:35:31Z<p>Mhirsh1: </p>
<hr />
<div></div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2158Matlab Blackjack Report2012-12-14T19:30:15Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==<br />
[[File:Example.jpg]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2157Matlab Blackjack Report2012-12-14T19:05:47Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. All of the betting seemed to work especially well. The program can accurately decide who wins each round and the total chips that the player has gets reassigned based on the result and how much was betted. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.<br />
<br />
== Conclusion ==<br />
When writing the blackjack simulator we had to stay organized and properly use the different programming techniques we have learned. Are implementation of while loops and if statements worked well, but when glancing at the code, everything looks jumbled and messy since there are multiple layers of loops and if/else statements. Maybe it would be better if we managed to make the code easier to look at. Also we found out that we had to be careful with variable names and stay consistent throughout. When we were debugging the program, we wasted a lot of time trying to find simple errors such as typing in variable names incorrectly. If we were to continue with this blackjack simulator, we would fix the 'get card' function so that once a card is chosen it would be removed from the deck and couldn't be chosen again. Some extensions we could make would be adding the options for double down and splitting, or allowing the player to to play multiple hands against the dealer at a time.<br />
<br />
== Appendices ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2156Matlab Blackjack Report2012-12-14T18:52:49Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''<br />
<br />
== Results ==<br />
As a whole, we were happy with the result of our blackjack simulator. We reached our goal of creating a blackjack game using Matlab and we were able to allow betting. All of the while loops worked well and the game continue to play smoothly until the user runs out of chips or types a '0' to exit. Despite our successes, we realize that the simulator is not perfect. We could not get our 'getcard' function to work exactly how we wanted to. The function returns a random card found with a number between 1 and 52 every time it's called. This means that the function could potentially return the exact same card many times in a row. In normal blackjack, of you are felt and ace, it would be slightly less likely for your next card to also be an ace, but in our simulator the probability doesn't change. Also, with the time constraints, we were unable to add functions for double down or for splitting which are additionally rules for blackjack that are allowed at many casinos. However, we did successfully implement the standard rules of blackjack.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=2155User:Mhirsh12012-12-14T18:34:49Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg| 400 px]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.<br />
<br />
<br />
[[RobotArtist| Team Extra Dubious and the Robot Artist]]<br />
In this mini project, Matt worked with his team and attempted to make a robot arm that would draw a circle inscribed in a square. After working through many problems. the group was still unable to complete this final goal but made a robot arm that could draw a triangle.<br />
<br />
<br />
[[Matlab Blackjack Report| Team Casino and the Matlab Blackjack simulator]]<br />
For his final project, Matt Hirsh worked with his partner to use Matlab to create a working blackjack simulator where the user can bet using chips.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2154Matlab Blackjack Report2012-12-14T18:32:27Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
<br />
'''''See links at bottom of page to see the actual code with clear comments.'''''</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2153Matlab Blackjack Report2012-12-14T18:31:59Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function contains a while loop to ensure that the player inputs an appropriate bet. Next, the main code will call a 'getcard' function which will randomly choose a number between 1 and 52 and assign a card suit and number to that number. Next is the 'getvlaue' function which will convert a card into a point value so it can be tallied up. Once the player has two cards and the dealer has his one face-up card, the code runs through another while loop that will give the player another card until they stop inputting 'h' for hit. Each run through this loop will deal one more card and add up the player's total point value to make sure the player doesn't bust. If the player goes over 21, if statements are used to check if any of the cards were an ace, so that its value could be reassigned from an 11 to a 1. Using another if statement, if the user ends his or her turn without busting, then the dealer will receive his second card and goes through a similar while loop himself. The dealer must continue to hit and add to his total point value until he bust or has more than 17. Once again, if statements are used to check if an ace can be reassigned to a 1 if the dealer busts. If neither the player or dealer bust, then some final if and elseif statements are used to check if the dealer or player had more points and reassigns the chip total appropriately. Before the end of each run through the main while loop, a 'getwinloss' function is called which determines if the player has enough chips to continue playing or not. If the player has enough, the program will start another round of blackjack by returning to the beginning of this outermost loop. If not, the game will print a game over message and the program terminates.<br />
''See links at bottom of page to see the actual code with clear comments.''</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2144Matlab Blackjack Report2012-12-12T23:40:38Z<p>Mhirsh1: /* Completed Project Design */</p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==<br />
From the outermost level, the blackjack simulator we created is one giant while loop. The conditions for the while loop to end are if the user does not have enough chips to make the minimum bet, has over 1,000,000 chips, or if the user types in 0 for the bet. Each run through the while loop will execute one individual round of black jack. before this main while loop, the program will call an intro function which will inform the player about the rules for playing and will identify how many chips the player starts with. The first function inside the loop is a 'getbet' function. This function</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2143Matlab Blackjack Report2012-12-12T23:25:04Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed. If and else if statement will only execute if specific conditions are met, otherwise the program will skip that portion of the code. This is important because, for example, we would want the round to end right away if the player goes over 21 points because there would be no use in having the dealer go though his turn if that condition is met. While loops are indefinite loops that will continue to execute until certain conditions are changed. These were also important to the coding progress because, for example, when we ask the user to input a bet, a while loop will continue to ask the user for a valid bet until the bet is greater than the minimum bet but less than the total number of chips the player has.<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2142Matlab Blackjack Report2012-12-12T23:08:21Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
=== Programming Ideas ===<br />
After fully understanding the rules of blackjack, it immediately became clear than many if statements and while loops were going to be needed.<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2141Matlab Blackjack Report2012-12-12T23:04:09Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
=== Extended Rules of Blackjack ===<br />
As briefly mentioned, in order to win blackjack against a dealer, the player must have more points than the dealer without going over 21 points. The player and dealer are both felt two cards but only one of the dealer's is faced up initially. Cards are worth their number value with jacks through kings also being ten points and aces can be eleven or one points depending on which works better. First, it it the player's turn and the user can decide to hit (get another card) or stand (end their turn). If the player goes over 21 points, he/she busts and automatically loses. Otherwise, it will then be the dealer's turn who will flip over his second card and must continue to hit until he either busts or has 17 points or greater. If neither the player or dealer bust, then the winner is the person with more points and that person will win the bet. It the player gets a blackjack, which is a ten-value card along with an ace, the player automatically wins 1.5 times his bet. If the player and dealer tie a round, then the bet is split and nobody loses or gains money.<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2140Matlab Blackjack Report2012-12-12T22:56:47Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
'''Table of Contents'''<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2139Matlab Blackjack Report2012-12-12T22:56:31Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
Table of Contents<br />
<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2138Matlab Blackjack Report2012-12-12T22:56:05Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
===Table of Contents:===<br />
<br />
<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.<br />
<br />
== Background/Theory ==<br />
<br />
== Completed Project Design ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2137Matlab Blackjack Report2012-12-12T22:55:12Z<p>Mhirsh1: </p>
<hr />
<div>By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
===Table of Contents:===<br />
<br />
<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2136Matlab Blackjack Report2012-12-12T22:54:39Z<p>Mhirsh1: </p>
<hr />
<div>===Matlab Blackjack Written Report===<br />
<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
===Table of Contents:===<br />
<br />
<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2135Matlab Blackjack Report2012-12-12T22:48:21Z<p>Mhirsh1: </p>
<hr />
<div>'''Matlab Blackjack Written Report'''<br />
<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
Table of Contents:<br />
<br />
<br />
== Abstract ==<br />
Blackjack is one of the most popular card games in the world with relatively simple rules. The player must try to beat the dealer by having a higher score without going over 21 points. In this project, are goal was to recreate a blackjack simulator. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==<br />
Our main goal for this final project was to create an accurate Blackjack simulator. Understanding how to efficiently and effectively use Matlab was often frustrating through the year, so we wanted to use this final project as a way to get extra practice with the program. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. Since blackjack is a betting game, we thought it would be interesting to create a simulator where we can bet chips instead.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2134Matlab Blackjack Report2012-12-12T22:31:55Z<p>Mhirsh1: </p>
<hr />
<div>'''Matlab Blackjack Written Report'''<br />
<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
<br />
Table of Contents:<br />
<br />
<br />
== Abstract ==<br />
We decided to use Matlab in order to create a Blackjack simulator. We wanted to better understand coding techniques and thought making a game like blackjack would be a fun way to do so. First we read about the casino rules for blackjack where the player is against the dealer. Next, we planned out our project by thinking of what programs we would need to make and implement. After we had written all the programs, we did many test and added more lines of code to make sure that everything was working properly.<br />
<br />
<br />
== Introduction ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2133Matlab Blackjack Report2012-12-12T22:25:24Z<p>Mhirsh1: </p>
<hr />
<div>'''Matlab Blackjack Written Report'''<br />
<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]<br />
[[Headline text]]<br />
<br />
== Headline text ==</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2132Matlab Blackjack Report2012-12-12T22:09:21Z<p>Mhirsh1: </p>
<hr />
<div>'''Matlab Blackjack Written Report'''<br />
<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Report&diff=2131Matlab Blackjack Report2012-12-12T22:09:08Z<p>Mhirsh1: Created page with ''''Matlab Blackjack Written Report''' By: Maxwell Sacks & Matthew Hirsh'</p>
<hr />
<div>'''Matlab Blackjack Written Report'''<br />
By: [[User:Msacks1 | Maxwell Sacks]] & [[User:Mhirsh1 | Matthew Hirsh]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=FinalProject&diff=2130FinalProject2012-12-12T22:07:17Z<p>Mhirsh1: /* List of projects */</p>
<hr />
<div>This page contains links to the final projects for the course.<br />
<br />
==List of projects==<br />
<br />
===Team Super Lazer Beam===<br />
* Team Members: [[User:jkarol1 | Jess Karol]], [[User:slu1 | Shaina Lu]], [[User:rquevedo1 | Raundi Quevedo]]<br />
* [[Robot Lazer | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section A<br />
<br />
===Team ROGUE===<br />
* Team Members: [[User:gbrown2 | Greg Brown]], [[User:rthiels1 | Ravenna Thielstrom]], [[User:oortiz1 | Olivia Ortiz]]<br />
* [[3D World | 3D World]]<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Victorious Secret===<br />
* Team Members: [[User:dpekert1 | Dakota Pekerti]]<br />
* [[No Handlebars | Project Proposal]]<br />
* Project report: [[File:Butterfly Knife Report.docx]]<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Action Potential===<br />
* Team Members: [[User:Kbarron1 | Kathryn Barron]], [[User:Jlandis2 | Joseph Landis]]<br />
* Team project proposal: [[Page: Action Potential Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: A<br />
<br />
===Team Casino===<br />
* Team Members: [[User:Msacks1 | Maxwell Sacks]], [[User:Mhirsh1 | Matthew Hirsh]]<br />
* Team project proposal: [[Matlab Blackjack Proposal]]<br />
*Project Report: [[Matlab Blackjack Report]]<br />
* Oral Presentation lab section: A<br />
<br />
===Team Speech Dash To Dash Text Period===<br />
* Team Members: [[User:Krobins2| Kerry Robinson]]<br />
* Project proposal: [[Speech to Text Project | Project Proposal for Speech to Text]]<br />
* Project report:<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Hugo Cabret===<br />
* Team Members: [[User:aearly1 | Andrew Early]], [[User:tnoomah1 | Theo Noomah]], [[User:anorlin1 | Abby Norling-Ruggles]], [[User:cemery1 | Christine Emery]], [[User:idulin1 | Isaac Dulin]]<br />
* Project proposal: [[Team Hugo Cabret - Clock Project | Clock Project]]<br />
* Project report: [[Team Hugo Cabret - Clock Project Final Report | Final Report]]<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Slide===<br />
*Team Members: [[User: Dwilson1 | Dionne Wilson]]<br />
*Team Project Proposal: [[Slide Square Game]]<br />
*Team Project Report:<br />
*Oral Presentation lab section: A<br />
<br />
===Team[[User:Lholcom1 | Lindsay Holcomb]]===<br />
* Team Members: [[User:Lholcom1 | Lindsay Holcomb]]<br />
* Project Proposal: [[Earthquake Project | Project Proposal]] <br />
* Project Report:<br />
* Oral Presentation Lab Section: A<br />
<br />
===Team M.E.D.S===<br />
* Team Members: [[User:Pmaguir1 | Patrick Maguire]], [[User:Elee3| Ethan Lee]], [[User:Dransho1 | David Ranshous]], [[User:Slieber1 | Seth Liebert]]<br />
* [[ServoCar Report | Project Report]]<br />
* [[ServoCar | Project Proposal]]<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Teo===<br />
* Team Members: [[User:Tgelles1 | Teo Gelles]]<br />
* [[Media:E5_Project_Proposal.rtf | Proposal]]<br />
* [[Media:E5Report.pdf | Project Report]]<br />
* Oral presentation lab section: Section B<br />
<br />
===Team Kurtis===<br />
*Team Members: [[User:kswartz1 | Kurtis Swartz]]<br />
* Project Proposal: [[Simple Cylinder Engine| Simple Cylinder Engine]]<br />
* Project Report:<br />
* Oral Presentation lab Section: B<br />
<br />
===Team Clock 'em Sock 'em===<br />
* Team Members: [[User:Schen3 | Lucas Chen]], [[User:Dredelm1 | Daniel Redelmeier]], [[User:Egluck1 | Erin Gluck]]<br />
* Team project proposal: [[Mechanical Clock]]<br />
*Project Report: <br />
* Oral Presentation lab section: B<br />
<br />
===Team Laura===<br />
*Team Members: [[User:lrigell1 | Laura Rigell]]<br />
*Team project proposal:<br />
*Project Report: [[Green Roof]]<br />
*Oral Presentation: B<br />
<br />
===Team Wagon=== <br />
*Team Members: [[User:Kbledso1| Kara Bledsoe]]<br />
*Project Proposal: [[Team Wagon]]<br />
*Project Report:<br />
*Oral presentation lab section: Section B<br />
<br />
===Team Crossbow===<br />
*Team Members: [[User:Cpitts1| Cappy Pitts]], [[User: Hthum1| Helen Thum]]<br />
*Project Proposal: [[Team Crossbow]]<br />
*Project Report:<br />
*Oral presentation lab section: Section B<br />
<br />
===Team Cosmo Alto===<br />
* Team Members: [[User:Calto1 | Cosmo Alto]]<br />
* [[Media:E5_Project_Proposal.doc | Project Proposal]]<br />
* Project Report:<br />
* Oral Presentation Lab Section: B<br />
<br />
===Team Spencer Friske===<br />
* Team Members: [[User:sfriske1 | Spencer Friske]]<br />
* [[Airfoil Proposal | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section C<br />
<br />
===Team Kathy=== <br />
* Team Members: [[User:ksun1 | Kathy Sun]] <br />
* Project proposal: [[Koch's Snowflake | Koch's Snowflake]] <br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team Rocket===<br />
* Team Member: [[User:cdrubin1 | Casey Drubin]]<br />
* Team project proposal: [[Rocket Simulation | Rocket Simulation]]<br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team Phoenix Chavez===<br />
* Team Members: [[User: Aguarin1| Ascanio Guarini]], [[User: Ggariba1 | Gustavo Garibay]]<br />
* Team project proposal: [[Phoenix Chavez|Project Proposal for the Phoenix]]<br />
*Project Report: [[Final Report|The Phoenix]]<br />
*Oral Presentation Lab Section: C<br />
<br />
===Team Connect Four===<br />
*Team Members: [[User:klin1| Katie Lin]], [[User: mheppe1| Madison Heppi]], [[User: bthomps1| Bennet Thompson]]<br />
* Team project proposal: [[Connect Four Project| Project Proposal for Connect Four]]<br />
* Project Report:<br />
* Oral Presentation lab section:C<br />
<br />
===Team Tetris===<br />
*Team Members: [[User:yalhess1| Yousef Alhessi]]<br />
*Project Proposal: [[Tetris]]<br />
*Project Report:<br />
*Oral presentation lab section: Section C</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Proposal&diff=1923Matlab Blackjack Proposal2012-11-16T00:40:20Z<p>Mhirsh1: </p>
<hr />
<div>Our goal for the [[FinalProject]] is to create a program with Matlab to simulate the casino game, Blackjack. The player will play against the computer who will be the dealer. Random cards will be dealt out and the user will have to put in input such as "hit" or "stand". Each card is worth a certain value, with numbers being worth their value, jacks through kings being 10, and aces being 1 or 11. The winner of each bet is the person who is closer to 21 without going over that amount. If the user wins, the player wins back twice what was betted. If the dealer wins, the user loses what was betted. In the event of a tie, the user receives the bet back. The game will continue until the user runs out of money or chooses to quit.<br />
<br />
Supplies needed: Matlab<br />
<br />
<br />
[http://en.wikipedia.org/wiki/Blackjack More on Blackjack rules here.]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Proposal&diff=1922Matlab Blackjack Proposal2012-11-16T00:39:45Z<p>Mhirsh1: </p>
<hr />
<div>Our goal for the [[FinalProject Final Project]] is to create a program with Matlab to simulate the casino game, Blackjack. The player will play against the computer who will be the dealer. Random cards will be dealt out and the user will have to put in input such as "hit" or "stand". Each card is worth a certain value, with numbers being worth their value, jacks through kings being 10, and aces being 1 or 11. The winner of each bet is the person who is closer to 21 without going over that amount. If the user wins, the player wins back twice what was betted. If the dealer wins, the user loses what was betted. In the event of a tie, the user receives the bet back. The game will continue until the user runs out of money or chooses to quit.<br />
<br />
Supplies needed: Matlab<br />
<br />
<br />
[http://en.wikipedia.org/wiki/Blackjack More on Blackjack rules here.]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Proposal&diff=1920Matlab Blackjack Proposal2012-11-16T00:38:51Z<p>Mhirsh1: moved Page: Matlab Blackjack Proposal to Matlab Blackjack Proposal</p>
<hr />
<div>Our goal is to create a program with Matlab to simulate the casino game, Blackjack. The player will play against the computer who will be the dealer. Random cards will be dealt out and the user will have to put in input such as "hit" or "stand". Each card is worth a certain value, with numbers being worth their value, jacks through kings being 10, and aces being 1 or 11. The winner of each bet is the person who is closer to 21 without going over that amount. If the user wins, the player wins back twice what was betted. If the dealer wins, the user loses what was betted. In the event of a tie, the user receives the bet back. The game will continue until the user runs out of money or chooses to quit.<br />
<br />
Supplies needed: Matlab<br />
<br />
<br />
[http://en.wikipedia.org/wiki/Blackjack More on Blackjack rules here.]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Page:_Matlab_Blackjack_Proposal&diff=1921Page: Matlab Blackjack Proposal2012-11-16T00:38:51Z<p>Mhirsh1: moved Page: Matlab Blackjack Proposal to Matlab Blackjack Proposal</p>
<hr />
<div>#REDIRECT [[Matlab Blackjack Proposal]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=FinalProject&diff=1919FinalProject2012-11-16T00:36:51Z<p>Mhirsh1: /* List of projects */</p>
<hr />
<div>===Introduction===<br />
<br />
This page contains links to the final projects for the course.<br />
<br />
==Template for teams==<br />
<br />
Use the following lines as a template and copy and paste them below in the "List of Projects" section. Fill in template with your information. '''Do not''' alter this original text, only your copy. <br />
===Team ?Name? (Don't change this template. Copy it and paste it below in "List of Projects" section.)===<br />
* Team Members: ?Add team members and links to wiki pages?<br />
* Project proposal: ?Add link to proposal - due before project starts?<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Choose Section A (8:30-9:45), Section B (9:55-11:10), Section C (11:20-12:35) on Dec. 11.<br />
<br />
==List of projects==<br />
<br />
===Team ROGUE===<br />
* Team Members: [[User:gbrown2 | Greg Brown]], [[User:rthiels1 | Ravenna Thielstrom]], [[User:oortiz1 | Olivia Ortiz]]<br />
* [[3D World | 3D World]]<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Victorious Secret===<br />
* Team Members: [[User:dpekert1 | Dakota Pekerti]]<br />
* [[No Handlebars | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Teo===<br />
* Team Members: [[User:Tgelles1 | Teo Gelles]]<br />
* [[Media:E5_Project_Proposal.rtf | Proposal]]<br />
* Project Report:<br />
* Oral presentation lab section: Section B<br />
<br />
===Team Kurtis===<br />
*Team Members: [[User:kswartz1 | Kurtis Swartz]]<br />
* Project Proposal: [[Simple Cylinder Engine| Simple Cylinder Engine]]<br />
* Project Report:<br />
* Oral Presentation lab Section: B<br />
<br />
===Team Spencer Friske===<br />
* Team Members: [[User:sfriske1 | Spencer Friske]]<br />
* [[Airfoil Proposal | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section C<br />
<br />
===Team Kathy=== <br />
* Team Members: [[User:ksun1 | Kathy Sun]] <br />
* Project proposal: [[Koch's Snowflake | Koch's Snowflake]] <br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team Rocket===<br />
* Team Member: [[User:cdrubin1 | Casey Drubin]]<br />
* Team project proposal: [[Rocket Simulation | Rocket Simulation]]<br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team M.E.D.S===<br />
* Team Members: [[User:Pmaguir1 | Patrick Maguire]], [[User:Elee3| Ethan Lee]], [[User:Dransho1 | David Ranshous]], [[User:Slieber1 | Seth Liebert]]<br />
* Project Report:<br />
* [[ExampleProposal | Project Proposal]]<br />
* Oral presentation lab section: Section ?<br />
<br />
===Team Action Potential===<br />
* Team Members: [[User:Kbarron1 | Kathryn Barron]], [[User:Jlandis2 | Joseph Landis]]<br />
* Team project proposal: [[Page: Action Potential Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: A<br />
<br />
===Team Casino===<br />
* Team Members: [[User:Msacks1 | Maxwell Sacks]], [[User:Mhirsh1 | Matthew Hirsh]]<br />
* Team project proposal: [[Matlab Blackjack Proposal]]<br />
*Project Report: <br />
* Oral Presentation lab section: A</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Matlab_Blackjack_Proposal&diff=1918Matlab Blackjack Proposal2012-11-16T00:35:34Z<p>Mhirsh1: Created page with 'Our goal is to create a program with Matlab to simulate the casino game, Blackjack. The player will play against the computer who will be the dealer. Random cards will be dealt …'</p>
<hr />
<div>Our goal is to create a program with Matlab to simulate the casino game, Blackjack. The player will play against the computer who will be the dealer. Random cards will be dealt out and the user will have to put in input such as "hit" or "stand". Each card is worth a certain value, with numbers being worth their value, jacks through kings being 10, and aces being 1 or 11. The winner of each bet is the person who is closer to 21 without going over that amount. If the user wins, the player wins back twice what was betted. If the dealer wins, the user loses what was betted. In the event of a tie, the user receives the bet back. The game will continue until the user runs out of money or chooses to quit.<br />
<br />
Supplies needed: Matlab<br />
<br />
<br />
[http://en.wikipedia.org/wiki/Blackjack More on Blackjack rules here.]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=FinalProject&diff=1917FinalProject2012-11-16T00:24:09Z<p>Mhirsh1: /* List of projects */</p>
<hr />
<div>===Introduction===<br />
<br />
This page contains links to the final projects for the course.<br />
<br />
==Template for teams==<br />
<br />
Use the following lines as a template and copy and paste them below in the "List of Projects" section. Fill in template with your information. '''Do not''' alter this original text, only your copy. <br />
===Team ?Name? (Don't change this template. Copy it and paste it below in "List of Projects" section.)===<br />
* Team Members: ?Add team members and links to wiki pages?<br />
* Project proposal: ?Add link to proposal - due before project starts?<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Choose Section A (8:30-9:45), Section B (9:55-11:10), Section C (11:20-12:35) on Dec. 11.<br />
<br />
==List of projects==<br />
<br />
===Team ROGUE===<br />
* Team Members: [[User:gbrown2 | Greg Brown]], [[User:rthiels1 | Ravenna Thielstrom]], [[User:oortiz1 | Olivia Ortiz]]<br />
* [[3D World | 3D World]]<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Victorious Secret===<br />
* Team Members: [[User:dpekert1 | Dakota Pekerti]]<br />
* [[No Handlebars | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Teo===<br />
* Team Members: [[User:Tgelles1 | Teo Gelles]]<br />
* [[Media:E5_Project_Proposal.rtf | Proposal]]<br />
* Project Report:<br />
* Oral presentation lab section: Section B<br />
<br />
===Team Kurtis===<br />
*Team Members: [[User:kswartz1 | Kurtis Swartz]]<br />
* Project Proposal: [[Simple Cylinder Engine| Simple Cylinder Engine]]<br />
* Project Report:<br />
* Oral Presentation lab Section: B<br />
<br />
===Team Spencer Friske===<br />
* Team Members: [[User:sfriske1 | Spencer Friske]]<br />
* [[Airfoil Proposal | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section C<br />
<br />
===Team Kathy=== <br />
* Team Members: [[User:ksun1 | Kathy Sun]] <br />
* Project proposal: [[Koch's Snowflake | Koch's Snowflake]] <br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team Rocket===<br />
* Team Member: [[User:cdrubin1 | Casey Drubin]]<br />
* Team project proposal: [[Rocket Simulation | Rocket Simulation]]<br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team M.E.D.S===<br />
* Team Members: [[User:Pmaguir1 | Patrick Maguire]], [[User:Elee3| Ethan Lee]], [[User:Dransho1 | David Ranshous]], [[User:Slieber1 | Seth Liebert]]<br />
* Project Report:<br />
* [[ExampleProposal | Project Proposal]]<br />
* Oral presentation lab section: Section ?<br />
<br />
===Team Action Potential===<br />
* Team Members: [[User:Kbarron1 | Kathryn Barron]], [[User:Jlandis2 | Joseph Landis]]<br />
* Team project proposal: [[Page: Action Potential Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: A<br />
<br />
===Team Casino===<br />
* Team Members: [[User:Msacks1 | Maxwell Sacks]], [[User:Mhirsh1 | Matthew Hirsh]]<br />
* Team project proposal: [[Page: Matlab Blackjack Proposal]]<br />
*Project Report: <br />
* Oral Presentation lab section: A</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=FinalProject&diff=1916FinalProject2012-11-16T00:18:45Z<p>Mhirsh1: /* List of projects */</p>
<hr />
<div>===Introduction===<br />
<br />
This page contains links to the final projects for the course.<br />
<br />
==Template for teams==<br />
<br />
Use the following lines as a template and copy and paste them below in the "List of Projects" section. Fill in template with your information. '''Do not''' alter this original text, only your copy. <br />
===Team ?Name? (Don't change this template. Copy it and paste it below in "List of Projects" section.)===<br />
* Team Members: ?Add team members and links to wiki pages?<br />
* Project proposal: ?Add link to proposal - due before project starts?<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Choose Section A (8:30-9:45), Section B (9:55-11:10), Section C (11:20-12:35) on Dec. 11.<br />
<br />
==List of projects==<br />
<br />
===Team ROGUE===<br />
* Team Members: [[User:gbrown2 | Greg Brown]], [[User:rthiels1 | Ravenna Thielstrom]], [[User:oortiz1 | Olivia Ortiz]]<br />
* [[3D World | 3D World]]<br />
* Project report: ?Add link to project report - due at end of semester?<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Victorious Secret===<br />
* Team Members: [[User:dpekert1 | Dakota Pekerti]]<br />
* [[No Handlebars | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section A<br />
<br />
===Team Teo===<br />
* Team Members: [[User:Tgelles1 | Teo Gelles]]<br />
* [[Media:E5_Project_Proposal.rtf | Proposal]]<br />
* Project Report:<br />
* Oral presentation lab section: Section B<br />
<br />
===Team Kurtis===<br />
*Team Members: [[User:kswartz1 | Kurtis Swartz]]<br />
* Project Proposal: [[Simple Cylinder Engine| Simple Cylinder Engine]]<br />
* Project Report:<br />
* Oral Presentation lab Section: B<br />
<br />
===Team Spencer Friske===<br />
* Team Members: [[User:sfriske1 | Spencer Friske]]<br />
* [[Airfoil Proposal | Project Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: Section C<br />
<br />
===Team Kathy=== <br />
* Team Members: [[User:ksun1 | Kathy Sun]] <br />
* Project proposal: [[Koch's Snowflake | Koch's Snowflake]] <br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team Rocket===<br />
* Team Member: [[User:cdrubin1 | Casey Drubin]]<br />
* Team project proposal: [[Rocket Simulation | Rocket Simulation]]<br />
* Project report:<br />
* Oral presentation lab section: C<br />
<br />
===Team M.E.D.S===<br />
* Team Members: [[User:Pmaguir1 | Patrick Maguire]], [[User:Elee3| Ethan Lee]], [[User:Dransho1 | David Ranshous]], [[User:Slieber1 | Seth Liebert]]<br />
* Project Report:<br />
* [[ExampleProposal | Project Proposal]]<br />
* Oral presentation lab section: Section ?<br />
<br />
===Team Action Potential===<br />
* Team Members: [[User:Kbarron1 | Kathryn Barron]], [[User:Jlandis2 | Joseph Landis]]<br />
* Team project proposal: [[Page: Action Potential Proposal]]<br />
* Project report:<br />
* Oral presentation lab section: A<br />
<br />
===Team Casino===<br />
* Team Members: [[User:Msacks1 | Maxwell Sacks]], [[User:Mhirsh1 | Matthew Hirsh]]<br />
* Team project proposal:<br />
*Project Report: <br />
* Oral Presentation lab section: A</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1888User:Mhirsh12012-11-15T17:23:46Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg| 400 px]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.<br />
<br />
<br />
[[RobotArtist| Team Extra Dubious and the Robot Artist]]<br />
In this mini project, Matt worked with his team and attempted to make a robot arm that would draw a circle inscribed in a square. After working through many problems. the group was still unable to complete this final goal but made a robot arm that could draw a triangle.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1887User:Mhirsh12012-11-15T17:23:28Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg| 400 px]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.<br />
<br />
<br />
[[RobotArtist| Team Extra Dubious]]<br />
In this mini project, Matt worked with his team and attempted to make a robot arm that would draw a circle inscribed in a square. After working through many problems. the group was still unable to complete this final goal but made a robot arm that could draw a triangle.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=File:RotatingSlider.zip&diff=1488File:RotatingSlider.zip2012-10-02T15:28:07Z<p>Mhirsh1: </p>
<hr />
<div></div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1487Mechanisms2012-10-02T15:27:56Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: <br />
*[[User:jlandis2 | Joe Landis]]<br />
<br />
*[[User:dpekert1 | Dakota Pekerti]]<br />
<br />
*[[User:gbrown2 | Greg Brown]]<br />
<br />
*Mechanism title: Scotch Yoke<br />
*Link to image: [[File:A-BETA.jpg|A-BETA.jpg]]<br />
*Link to animation: [[File:ABetascotchyoke.avi|ABetascotchyoke.avi]]<br />
*Link to zip file: [[File:A-BETAscotchyoke.zip|A-BETAscotchyoke.zip]]<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi | Animation]]<br />
*Link to zip file of parts [[Media:SQUAREBETTER.zip | Parts]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[User:sfriske1|Spencer Friske]], [[User:bthomps1|Bennett Thompson]], [[User:cdrubin1|Casey Drubin]]<br />
*Mechanism title: Team Cα's double slider<br />
*Link to image: [[File:TwoSliderCAlpha.JPG|450px]]<br />
*Link to animation: [[File:TwoSliderCAlpha.avi]]<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[User:kswartz1| Kurits Swartz]], [[User:mheppe1| Madison Heppe]], [[User:klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
[[File:1 rotation 2 strokes.jpg|450px]]<br />
*Link to animation: [[File:1_rotation_2_strokes_(13).avi]]<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile: [[File:RotatingSlider.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1486Mechanisms2012-10-02T15:27:15Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: <br />
*[[User:jlandis2 | Joe Landis]]<br />
<br />
*[[User:dpekert1 | Dakota Pekerti]]<br />
<br />
*[[User:gbrown2 | Greg Brown]]<br />
<br />
*Mechanism title: Scotch Yoke<br />
*Link to image: [[File:A-BETA.jpg|A-BETA.jpg]]<br />
*Link to animation: [[File:ABetascotchyoke.avi|ABetascotchyoke.avi]]<br />
*Link to zip file: [[File:A-BETAscotchyoke.zip|A-BETAscotchyoke.zip]]<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi | Animation]]<br />
*Link to zip file of parts [[Media:SQUAREBETTER.zip | Parts]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[User:sfriske1|Spencer Friske]], [[User:bthomps1|Bennett Thompson]], [[User:cdrubin1|Casey Drubin]]<br />
*Mechanism title: Team Cα's double slider<br />
*Link to image: [[File:TwoSliderCAlpha.JPG|450px]]<br />
*Link to animation: [[File:TwoSliderCAlpha.avi]]<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[User:kswartz1| Kurits Swartz]], [[User:mheppe1| Madison Heppe]], [[User:klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
[[File:1 rotation 2 strokes.jpg|450px]]<br />
*Link to animation: [[File:1_rotation_2_strokes_(13).avi]]<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile: [[RotatingSlider.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1431Mechanisms2012-09-30T15:54:12Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[sfriske1|Spencer Friske]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[kswartz1| Kurits Swartz]], [[mheppe1| Madison Heppe]], [[klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
*Link to animation: complete<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile:</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1430Mechanisms2012-09-30T15:48:05Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[sfriske1|Spencer Friske]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[kswartz1| Kurits Swartz]], [[mheppe1| Madison Heppe]], [[klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
*Link to animation: complete<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile: [[File:RotatingSlider.zip]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1429Mechanisms2012-09-30T15:31:34Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[sfriske1|Spencer Friske]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[kswartz1| Kurits Swartz]], [[mheppe1| Madison Heppe]], [[klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
*Link to animation: complete<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile:</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=Mechanisms&diff=1428Mechanisms2012-09-30T15:28:04Z<p>Mhirsh1: /* Team C&delta;: */</p>
<hr />
<div>===Introduction===<br />
<br />
Directions for the lab are available at [http://www.swarthmore.edu/NatSci/echeeve1/Class/e5/E5L4/E5L4.html Lab 4]<br />
<br />
==Teams==<br />
<br />
===Team A&alpha;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&beta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&gamma;:===<br />
*Links to team members: <br />
[[User:Pmaguir1]]<br />
[[User:Aearly1]]<br />
[[User:Krobins2]]<br />
*Mechanism title: Drafting Mechanism<br />
*Link to image: <br />
[[File:DraftingMechAGamma.png]]<br />
*Link to animation: <br />
[[Media:AssyDraftingMechAGammaVideo.avi]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team A&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team A&epsilon;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&alpha;:===<br />
*Links to team members:[[User:slieber1 |Seth Liebert]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team B&beta;:===<br />
*Links to team members: <br />
[[User:Oortiz1 | Olivia Ortiz]]<br />
[[User:Cpitts1 | Cappy Pitts]]<br />
[[User:Hthum1 | Helen Thum]]<br />
<br />
*Mechanism title: The Mapper of Planets<br />
*Link to image: [[File:SquareAssembly.JPG]]<br />
*Link to animation: [[Media:SquareAssembly.avi]]<br />
<br />
===Team B&gamma;:===<br />
*Links to team members: <br />
[[User:egluck1 | Erin Gluck]]<br />
[[User:dredelm1 | Daniel Redelmeier]]<br />
[[User:rqueved1 | Raundi Quevedo]]<br />
*Mechanism title: The Bible Revisited (Jesus Lizard) <br />
*Link to image:<br />
[[File:Team By Jesus Lizard.JPG|800px]]<br />
*Link to animation: [[Media:Jesus Lizard Animation.avi | Jesus Lizard Animation]]<br />
*Zip File<br />
[[Media:DraftingMechPegAGamma.zip]]<br />
<br />
===Team B&delta;:===<br />
*Links to team members: complete<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&alpha;:===<br />
*Links to team members: [[sfriske1|Spencer Friske]]<br />
*Mechanism title: complete<br />
*Link to image: complete<br />
*Link to animation: complete<br />
<br />
===Team C&beta;:===<br />
*Links to team members: [[kswartz1| Kurits Swartz]], [[mheppe1| Madison Heppe]], [[klin1| Katie Lin]]<br />
*Mechanism title: 1 rotation 2 strokes<br />
*Link to image: <br />
*Link to animation: complete<br />
<br />
===Team C&gamma;:===<br />
*Links to team members: [[User:Yalhess1 | Yousef Alhessi]],[[User:Slu1 | Shaina Lu]],[[User:Anorlin1 | Abby Norling-Ruggles]], and [[User:Dransho1 | David Ranshous]]<br />
*Mechanism title: Most Definitely Really Awesome Superb Two-Slider (MDRASTS)<br />
*Link to image: <br />
[[File:slider2.jpg|450px]]<br />
*Link to animation: [[File:Cy_2.avi]]<br />
<br />
===Team C&delta;:===<br />
Members:<br />
*[[User:Ksun1 | Kathy Sun]]<br />
*[[User:Mhirsh1 | Matthew Hirsh]]<br />
*[[User:Aguarin1 |Ascanio Guarini ]]<br />
*[[User:Kbarron1 |Kathryn Barron ]]<br />
Mechanism title: Rotating Slider <br />
<br />
Link to image: [[File:Rotating slider cdelta.JPG | 400 px]]<br />
<br />
Link to animation: [[File:Rotating slider cdelta.avi]]<br />
<br />
Link to Zipfile: [[File:https://swatmail.swarthmore.edu/service/home/~/New%20Compressed%20(zipped)%20Folder.zip?auth=co&loc=en_US&id=1151&part=4&disp=a]]</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1427User:Mhirsh12012-09-30T15:25:25Z<p>Mhirsh1: /* First Solidwork Design */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg| 400 px]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1426User:Mhirsh12012-09-30T15:24:08Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1425User:Mhirsh12012-09-30T15:23:53Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
In this group project, Matt's team try to make a robotic arm that was both light and strong.<br />
<br />
<br />
[[Mechanisms| Team Team Cδ and the Rotating Slider]]<br />
In his third project, Matt worked with a team to create a rotating slider mechanism using multiple parts.</div>Mhirsh1https://wikis.swarthmore.edu/ENGR005_2012/index.php?title=User:Mhirsh1&diff=1424User:Mhirsh12012-09-30T15:21:31Z<p>Mhirsh1: /* Projects */</p>
<hr />
<div>This is the user page for Matt Hirsh. He is currently a freshman at Swarthmore College. Matt is taking E5.<br />
<br />
[mailto:mhirsh1@swarthmore.edu Email to Matt Hirsh]<br />
<br />
[[Image:Swarthmoe_logo_Hirsh.gif]]<br />
<br />
<br />
[http://www.swarthmore.edu Swarthmore College home page]<br />
<br />
== First Solidwork Design ==<br />
<br />
[[Image:MattHirsh_firstpic.jpg]]<br />
<br />
== Projects ==<br />
<br />
[[Team PB| Ball drop for Team PB]]<br />
In this first group project, Matt's team launched a tennis ball off of a building using a zip-line. His group's tennis ball traveled father than the other groups.<br />
<br />
<br />
[[Team P| Team P and the Robotic arm lab]]<br />
<br />
[[Mechanisms| Team]]</div>Mhirsh1