{"id":18971,"date":"2017-02-26T16:21:05","date_gmt":"2017-02-26T16:21:05","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=18971"},"modified":"2021-03-17T09:07:37","modified_gmt":"2021-03-17T09:07:37","slug":"number-guess-game-flowchart","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/number-guess-game-flowchart\/","title":{"rendered":"Number Guess Game Flowchart"},"content":{"rendered":"<h3>Overview<\/h3>\n<p>In this post, we will model a Raptor flowchart to play a sample number guess game. The flowchart prompts the user to enter number guesses. If any of the user guesses match with the flowchart generated random number, the user Wins the game.<\/p>\n<h3>Generate Random Number<\/h3>\n<p>To generate a random number between the numbers 1 and 20.<\/p>\n<p><strong>floor((random*20) + 1)<\/strong><\/p>\n<p>This number is stored in secret.<\/p>\n<h3>Flowchart<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18973\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart.png\" alt=\"Number GuessGame Flowchart\" width=\"993\" height=\"1922\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart.png 993w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart-155x300.png 155w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart-529x1024.png 529w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart-768x1487.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/NumberGuessGame-Flowchart-794x1536.png 794w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<h3>Sample Output<\/h3>\n<p>Oops!.The guess is not correct<br \/>\nOops!.The guess is not correct<br \/>\nOops!.The guess is not correct<br \/>\nCongratulations, You Won the Game \ud83d\ude42<br \/>\n&#8212;-Run complete. 33 symbols evaluated.&#8212;-<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18977\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output.png\" alt=\"Number Guess Flowchart Output\" width=\"1691\" height=\"990\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output.png 1691w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output-300x176.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output-1024x600.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output-768x450.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Number-Guess-Flowchart-Output-1536x899.png 1536w\" sizes=\"auto, (max-width: 1691px) 100vw, 1691px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Raptor Tutorials on this website can be found at:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>https:\/\/www.testingdocs.com\/raptor-a-flowchart-tool\/<\/strong><\/a><\/p>\n<p>RAPTOR official website: <a href=\"https:\/\/raptor.martincarlisle.com\/\" rel=\"noopener\"><strong>https:\/\/raptor.martincarlisle.com\/<\/strong><\/a><\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-18971\" data-postid=\"18971\" class=\"themify_builder_content themify_builder_content-18971 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>Overview In this post, we will model a Raptor flowchart to play a sample number guess game. The flowchart prompts the user to enter number guesses. If any of the user guesses match with the flowchart generated random number, the user Wins the game. Generate Random Number To generate a random number between the numbers [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[187],"tags":[19],"class_list":["post-18971","post","type-post","status-publish","format-standard","hentry","category-flowchart","tag-raptor","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=18971"}],"version-history":[{"count":7,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18971\/revisions"}],"predecessor-version":[{"id":19343,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/18971\/revisions\/19343"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=18971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=18971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=18971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}