2023-04-30 23:50:07 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
2023-09-09 05:40:54 +08:00
< meta name = "generator" content = "Doxygen 1.9.8" / >
2023-04-30 23:50:07 +08:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Algorithms_in_C: game_instance Struct Reference< / title >
< link href = "../../tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../jquery.js" > < / script >
< script type = "text/javascript" src = "../../dynsections.js" > < / script >
< link href = "../../navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../resize.js" > < / script >
< script type = "text/javascript" src = "../../navtreedata.js" > < / script >
< script type = "text/javascript" src = "../../navtree.js" > < / script >
< link href = "../../search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
< script type = "text/javascript" src = "../../search/search.js" > < / script >
< script type = "text/x-mathjax-config" >
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
< / script >
< script type = "text/javascript" async = "async" src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js" > < / script >
< link href = "../../doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectalign" >
< div id = "projectname" > Algorithms_in_C< span id = "projectnumber" >   1.0.0< / span >
< / div >
< div id = "projectbrief" > Set of algorithms implemented in C.< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2023-09-09 05:40:54 +08:00
<!-- Generated by Doxygen 1.9.8 -->
2023-04-30 23:50:07 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
< / script >
< script type = "text/javascript" src = "../../menudata.js" > < / script >
< script type = "text/javascript" src = "../../menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
< / script >
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('d1/d01/structgame__instance.html','../../'); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-attribs" > Data Fields< / a > < / div >
< div class = "headertitle" > < div class = "title" > game_instance Struct Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > - tolower() for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > , new_word(), < a class = "el" href = "../../dc/dc5/hangman_8c.html#a9611b43141ac2e6ba245487c493599fc" title = "checks if letter has been guessed before" > new_guess()< / a > , < a class = "el" href = "../../dc/dc5/hangman_8c.html#a669e745d87eb1740ab9b1f3b73bb7336" title = "checks if player has won or lost" > won()< / a > - I/O operations for all functions - exit(), rand() and file functions for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > - for string operations strlen, strchr, strcpy for < a class = "el" href = "../../dc/dc5/hangman_8c.html#ad4130a1d1092d32dcfa4a46019e27d45" title = "creates a new game - generates a random word and stores in global variable current_word" > new_game()< / a > - used with srand() for declaring new game instance
< a href = "../../d1/d01/structgame__instance.html#details" > More...< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "pub-attribs" name = "pub-attribs" > < / a >
Data Fields< / h2 > < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:ad3caed9fb908aa7dba2aa25e8debdfdf" id = "r_ad3caed9fb908aa7dba2aa25e8debdfdf" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ad3caed9fb908aa7dba2aa25e8debdfdf" name = "ad3caed9fb908aa7dba2aa25e8debdfdf" > < / a >
2023-04-30 23:50:07 +08:00
char  < / td > < td class = "memItemRight" valign = "bottom" > < b > current_word< / b > [30]< / td > < / tr >
< tr class = "memdesc:ad3caed9fb908aa7dba2aa25e8debdfdf" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > word to be guessed by player < br / > < / td > < / tr >
< tr class = "separator:ad3caed9fb908aa7dba2aa25e8debdfdf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:aabb340e08e8ab73df250a6fe3b6f532d" id = "r_aabb340e08e8ab73df250a6fe3b6f532d" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "aabb340e08e8ab73df250a6fe3b6f532d" name = "aabb340e08e8ab73df250a6fe3b6f532d" > < / a >
2023-04-30 23:50:07 +08:00
char  < / td > < td class = "memItemRight" valign = "bottom" > < b > hidden< / b > [30]< / td > < / tr >
< tr class = "memdesc:aabb340e08e8ab73df250a6fe3b6f532d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > hidden version of word that is displayed to player < br / > < / td > < / tr >
< tr class = "separator:aabb340e08e8ab73df250a6fe3b6f532d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:ae7d4369a86942792c809a51965764094" id = "r_ae7d4369a86942792c809a51965764094" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ae7d4369a86942792c809a51965764094" name = "ae7d4369a86942792c809a51965764094" > < / a >
2023-04-30 23:50:07 +08:00
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > size< / b > < / td > < / tr >
< tr class = "memdesc:ae7d4369a86942792c809a51965764094" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > size of word < br / > < / td > < / tr >
< tr class = "separator:ae7d4369a86942792c809a51965764094" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:a89731a7d5b4676db9ccc4b0db2cd8f24" id = "r_a89731a7d5b4676db9ccc4b0db2cd8f24" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a89731a7d5b4676db9ccc4b0db2cd8f24" name = "a89731a7d5b4676db9ccc4b0db2cd8f24" > < / a >
2023-04-30 23:50:07 +08:00
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > incorrect< / b > < / td > < / tr >
< tr class = "memdesc:a89731a7d5b4676db9ccc4b0db2cd8f24" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > number of incorrect guesses < br / > < / td > < / tr >
< tr class = "separator:a89731a7d5b4676db9ccc4b0db2cd8f24" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:a742506bd6e2e03ce63e504ef6abdf643" id = "r_a742506bd6e2e03ce63e504ef6abdf643" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a742506bd6e2e03ce63e504ef6abdf643" name = "a742506bd6e2e03ce63e504ef6abdf643" > < / a >
2023-04-30 23:50:07 +08:00
char  < / td > < td class = "memItemRight" valign = "bottom" > < b > guesses< / b > [25]< / td > < / tr >
< tr class = "memdesc:a742506bd6e2e03ce63e504ef6abdf643" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > previous guesses < br / > < / td > < / tr >
< tr class = "separator:a742506bd6e2e03ce63e504ef6abdf643" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2023-09-09 05:40:54 +08:00
< tr class = "memitem:affc18c8be0e07b6b19914458ed853aa7" id = "r_affc18c8be0e07b6b19914458ed853aa7" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "affc18c8be0e07b6b19914458ed853aa7" name = "affc18c8be0e07b6b19914458ed853aa7" > < / a >
2023-04-30 23:50:07 +08:00
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > guesses_size< / b > < / td > < / tr >
< tr class = "memdesc:affc18c8be0e07b6b19914458ed853aa7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > size of guesses array < br / > < / td > < / tr >
< tr class = "separator:affc18c8be0e07b6b19914458ed853aa7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > - tolower() for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > , new_word(), < a class = "el" href = "../../dc/dc5/hangman_8c.html#a9611b43141ac2e6ba245487c493599fc" title = "checks if letter has been guessed before" > new_guess()< / a > , < a class = "el" href = "../../dc/dc5/hangman_8c.html#a669e745d87eb1740ab9b1f3b73bb7336" title = "checks if player has won or lost" > won()< / a > - I/O operations for all functions - exit(), rand() and file functions for < a class = "el" href = "../../d8/daf/affine_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title = "main function" > main()< / a > - for string operations strlen, strchr, strcpy for < a class = "el" href = "../../dc/dc5/hangman_8c.html#ad4130a1d1092d32dcfa4a46019e27d45" title = "creates a new game - generates a random word and stores in global variable current_word" > new_game()< / a > - used with srand() for declaring new game instance < / p >
< / div > < hr / > The documentation for this struct was generated from the following file:< ul >
< li > games/< a class = "el" href = "../../dc/dc5/hangman_8c.html" > hangman.c< / a > < / li >
< / ul >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "../../d1/d01/structgame__instance.html" > game_instance< / a > < / li >
2023-09-09 05:40:54 +08:00
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "../../doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.9.8 < / li >
2023-04-30 23:50:07 +08:00
< / ul >
< / div >
< / body >
< / html >