Preview

Random

Good Essays
Open Document
Open Document
265 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Random
Connect Four Program To play connect four, you have a standing-up board with seven vertical rows of clear circles, and six horizontal rows of circles, making up a total of forty-two circles. You will also need two players, or a single person that will play as both. First, player one puts a red circle piece into one of the seven columns, and then player two puts a blue circle piece into one of the seven columns. The circle pieces will go to the lowest vacant spot on the vertical row it was selected on. You keep repeating these two steps until one player has four pieces horizontally, vertically, or diagonally. If all the circles are filled and none of them are winner patterns, than it is a tie between the players. My program will use graphics. The title screen will have three buttons, one is it play the game, the second will give instructions then loop back to the title, and the last will be “Quit”, which will exit the program. When you press “Play”, there will be a new screen that has the board, a score board that shows how many wins each player has. Once a player wins, or it is a tie, a mini screen will pop up to ask the player if he/she would like to play the game again, or return to the title screen Instead of making clear, circles, I will make a rectangle, than put the forty two circles on the rectangle. I will make the program a certain theme that I will come up with later.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The first person to make it all the way around the board wins. You need the exact number to finish.…

    • 119 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Simple Random Sampling

    • 1351 Words
    • 6 Pages

    Simple Random Sampling: A simple random sample (SRS) of size n is produced by a scheme which ensures that each subgroup of the population of size n has an equal probability of being chosen as the sample.…

    • 1351 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Random

    • 481 Words
    • 2 Pages

    DEFINE LOYALTY: (DEFINE: Bear true faith and allegiance to the US constitution: to “bear true faith and allegiance to the United States constitution, the Army, and other soldiers” - (HQDA - FM 22-100, 1999) is a particularly difficult Army value for corporate America to fully embrace because it requires a primary allegiance to a group other than corporations’ acknowledged focus ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The loyalty of your people is a gift they give you when, and only when, you deserve it—when you train them well, treat them fairly, and live by the concepts you talk about. Remember Soldiers fight for each other—loyalty is that commitment. Loyalty extends to all members of all components of the Army. Both the reserve component—Army National Guard and Army Reserve—and Army civilians all play an increasingly active role in the Army’s mission.  Loyalty – to “bear true faith and allegiance to the United States constitution, the Army, and other soldiers” - (HQDA - FM 22-100, 1999) is a particularly difficult Army value for corporate America to fully embrace because it requires a primary allegiance to a group other than corporations’ acknowledged focus: the stockholder, employee, and the corporation. Conventional contracting experience attests that, with few exceptions, financial decisions ultimately force the contractor to choose corporate allegiance over loyalty to the Army. Another factor that impacts the loyalty of a contractor to the government is the length of the contractual relationship. Unlike the long-term relationships enjoyed by defense materiel contractors, Sustaining Base contractors provide common services that are competed regularly, resulting in shorter-term relationships. Knowing this, service contractors are less likely to invest resources to demonstrate their loyalties. The coexistence of conflicting loyalties is divisive to the Army and readily apparent to the soldiers and families that are supported.…

    • 481 Words
    • 2 Pages
    Good Essays
  • Better Essays

    The Lottery

    • 3101 Words
    • 13 Pages

    The specific details Jackson describes in the beginning of “The Lottery” set us up for the shocking conclusion. In the first paragraph, Jackson provides specific details about the day on which the lottery takes place. She tells us the date (June 27), time (about 10 A.M.), and temperature (warm). She describes the scene exactly: there are flowers and green grass, and the town square, where everyone gathers, is between the bank and post office. She provides specifics about the town, including how many people live there and how long the lottery takes, as well as about neighboring towns, which have more people and must start the lottery earlier. In the paragraphs that follow this introduction, Jackson gives us characters’ full names—Bobby Martin, Harry Jones, and Dickie Delacroix, among others—and even tells us how to pronounce “Delacroix.”…

    • 3101 Words
    • 13 Pages
    Better Essays
  • Satisfactory Essays

    The Lottery

    • 591 Words
    • 3 Pages

    I believe "The lottery" also presents a strong message about the dangers of conformity. Such a terrible, frightening act could only be upheld for so many years by so…

    • 591 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    The Lottery

    • 1666 Words
    • 7 Pages

    Written and published in 1948, “The Lottery” by Shirley Jackson is today ranked as “one of the most famous short stories in the history of American Literature” according to author Laurie Harris. This short story focuses on a village that every year has a lottery to determine which of the towns’ people will be sacrificed in order to guarantee a good harvest for the coming year. The readers are deceptively led to believe that the lottery is a normal, casual event when in actuality it is a horrific tradition followed out of fear. A close study of theme, conflicts, conventions, style, and context in and around The Lottery reveals that religion and tradition, especially when used in a universalizing sense, is a powerful force used to control the masses. Through Shirley Jackson’s The Lottery, the author carefully uses symbolic names and objects, as well as strong historical and biblical allusion to develop this theme.…

    • 1666 Words
    • 7 Pages
    Better Essays
  • Good Essays

    Luck

    • 545 Words
    • 3 Pages

    Figurative language and imagery help develop a selection’s mood, character and conflict. In this essay I will compare and discuss how figurative language and imagery help to develop the mood, character and conflict of all of the selections done in class.…

    • 545 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The Lottery

    • 1039 Words
    • 3 Pages

    In the short story The Lottery by Shirley Jackson the reader finds a small town that has an annual lottery in which everyone is a part of. Men, women, and children of all ages are to participate in this gathering. In this short story the context is significantly similar to that of the video and give the reader a good and clear picture of what truly goes on.…

    • 1039 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Luck

    • 503 Words
    • 3 Pages

    Luck was a factor because, at the time a beer company’s beer was going off, so they decided to ask Pasteur for help. He then found that germs were the cause of the beer going bad. so therefore luck was most certainly a factor.Each area of land would be split into four sections. The crop that was grown on each field would be rotated so that different nutrients would be taken from the land. In the first year turnips or another root crop would be grown; in the second year barley was grown in the field (barley could be sold at a profit); in the third year clover or a grass crop was grown and in the fourth year wheat was grown in the field (wheat could also be sold for a profit). Enclosure meant that the common land, meadow, and the three fields were reorganized and redistributed. A farmer’s land was now all in one area and he could enclose his fields with fences and hedges. Enclosure allowed farmers to control the breeding of their livestock because the animals could be separated into different fields. This helped farming a lot easier.…

    • 503 Words
    • 3 Pages
    Good Essays
  • Better Essays

    The Lottery

    • 1041 Words
    • 5 Pages

    Shirley Jackson’s The Lottery is a short story about a small village that has an event every year called the lottery. Jackson does not let the reader know right away about the irony of the lottery; it is not something the villagers would want to win. Jackson does not give away the consequences of the lottery until the end of the story. Jackson applies some strong literacy devices in her story. She manages to manipulate the reader during the story through the setting, foreshadowing point-of-view and themes.…

    • 1041 Words
    • 5 Pages
    Better Essays
  • Good Essays

    The Lottery

    • 1125 Words
    • 5 Pages

    A healthy harvest has always been important to civilizations. Once field preparation is done, the farmer can only wait and hope that the correct balance of rain and sun will ensure a good harvest. Many ancient cultures believed that growing crops represented the life cycle; hence they believed ritual sacrifice was needed to guarantee a good crop. In this short story "The Lottery," Shirley Jackson uses this archetype to showcase man 's inherent need for such ritual.…

    • 1125 Words
    • 5 Pages
    Good Essays
  • Good Essays

    randomfield

    • 1757 Words
    • 8 Pages

    STB1013 Cell Biology Basic Properties of Cells 1. What are the fundamental properties that are shared by all Cells? 2.…

    • 1757 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    RANDOM ACTS OF KINDNESS

    • 395 Words
    • 3 Pages

    RANDOM ACTS OF KINDNESS Day of the week Target Act Monday Someone in my homeroom I helped a person in my homeroom by telling him that his bag was wide open. When he realized that his bag was open, he had gotten a smile on his face…

    • 395 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Random Number Table

    • 564 Words
    • 3 Pages

    Random number tables have been used in statistics for tasks such as selected random samples. This was much more effective than manually selecting the random samples (with dice, cards, etc.). Nowadays, tables of random numbers have been replaced by computational random number generators.…

    • 564 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Guesstimates

    • 5478 Words
    • 22 Pages

    Perhaps even more so than tough finance questions, brainteasers and guesstimates can unnerve the most icy-veined, well-prepared finance candidate. Even if you know the relationships between inflation, bond prices and interest rates like the back of a dollar bill, all your studying may not help you when your interviewer asks you how many ping pong balls fit in a 747. That is partly their purpose. Investment bankers and other finance professionals need to be able to work well under pressure, so many interviewers believe that throwing a brainteaser or guesstimate at a candidate is a good way to test an applicant’s battle-worthiness. But these questions serve another purpose, too – interviewers want you to showcase your ability to analyze a situation, and to form conclusions about this situation. It is not necessarily important that you come up with a correct answer, just that you display strong analytical ability…

    • 5478 Words
    • 22 Pages
    Powerful Essays