TheAlgorithms-C/db/de2/naval__battle_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg

200 lines
11 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.49.2 (20211016.1639)
-->
<!-- Title: main Pages: 1 -->
<svg width="335pt" height="332pt"
viewBox="0.00 0.00 335.00 332.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 328)">
<title>main</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-328 331,-328 331,4 -4,4"/>
<!-- Node1 -->
<g id="node1" class="node">
<title>Node1</title>
<g id="a_node1"><a xlink:title="Main function.">
<polygon fill="#bfbfbf" stroke="black" points="0,-152.5 0,-171.5 38,-171.5 38,-152.5 0,-152.5"/>
<text text-anchor="middle" x="19" y="-159.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
</a>
</g>
</g>
<!-- Node2 -->
<g id="node2" class="node">
<title>Node2</title>
<g id="a_node2"><a xlink:href="../../db/de2/naval__battle_8c.html#ab6e31f8df36de67ff967859069ccfc56" target="_top" xlink:title="Function calculateScore Responsible for calculating the score obtained during the game.">
<polygon fill="white" stroke="black" points="84.5,-304.5 84.5,-323.5 166.5,-323.5 166.5,-304.5 84.5,-304.5"/>
<text text-anchor="middle" x="125.5" y="-311.5" font-family="Helvetica,sans-Serif" font-size="10.00">calculateScore</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node2 -->
<g id="edge1" class="edge">
<title>Node1&#45;&gt;Node2</title>
<path fill="none" stroke="midnightblue" d="M21.27,-171.84C24.92,-196.13 37.59,-259.52 74,-295 75.61,-296.57 77.36,-298.01 79.21,-299.33"/>
<polygon fill="midnightblue" stroke="midnightblue" points="77.45,-302.36 87.84,-304.41 81,-296.32 77.45,-302.36"/>
</g>
<!-- Node3 -->
<g id="node3" class="node">
<title>Node3</title>
<g id="a_node3"><a xlink:href="../../db/de2/naval__battle_8c.html#a59224afd73372b4f52415203e315f6e1" target="_top" xlink:title="Function canShoot Responsible to verify that it is a valid position to shoot.">
<polygon fill="white" stroke="black" points="96,-266.5 96,-285.5 155,-285.5 155,-266.5 96,-266.5"/>
<text text-anchor="middle" x="125.5" y="-273.5" font-family="Helvetica,sans-Serif" font-size="10.00">canShoot</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node3 -->
<g id="edge2" class="edge">
<title>Node1&#45;&gt;Node3</title>
<path fill="none" stroke="midnightblue" d="M22.95,-171.52C29.26,-190.43 45.87,-232.97 74,-257 77.72,-260.18 82.03,-262.85 86.52,-265.09"/>
<polygon fill="midnightblue" stroke="midnightblue" points="85.33,-268.39 95.9,-269.11 88.08,-261.95 85.33,-268.39"/>
</g>
<!-- Node4 -->
<g id="node4" class="node">
<title>Node4</title>
<g id="a_node4"><a xlink:href="../../db/de2/naval__battle_8c.html#a3f7d3dc5931fba6164e73057859094d9" target="_top" xlink:title="Function positionBoat Responsible for placing the boats on the board, according to the size.">
<polygon fill="white" stroke="black" points="89.5,-228.5 89.5,-247.5 161.5,-247.5 161.5,-228.5 89.5,-228.5"/>
<text text-anchor="middle" x="125.5" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">positionBoat</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node4 -->
<g id="edge3" class="edge">
<title>Node1&#45;&gt;Node4</title>
<path fill="none" stroke="midnightblue" d="M28.38,-171.8C38.38,-183.05 56.02,-201.56 74,-214 79.29,-217.66 85.23,-221.03 91.12,-224.02"/>
<polygon fill="midnightblue" stroke="midnightblue" points="89.72,-227.23 100.25,-228.39 92.74,-220.92 89.72,-227.23"/>
</g>
<!-- Node6 -->
<g id="node6" class="node">
<title>Node6</title>
<g id="a_node6"><a xlink:href="../../db/de2/naval__battle_8c.html#a7c5042bd35c4186b06ae28f06635b40e" target="_top" xlink:title="for Standard Input Output">
<polygon fill="white" stroke="black" points="213,-190.5 213,-209.5 327,-209.5 327,-190.5 213,-190.5"/>
<text text-anchor="middle" x="270" y="-197.5" font-family="Helvetica,sans-Serif" font-size="10.00">validEntryLineColumn</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node6 -->
<g id="edge13" class="edge">
<title>Node1&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M38.31,-164.79C72.51,-170.01 147.65,-181.48 202.92,-189.92"/>
<polygon fill="midnightblue" stroke="midnightblue" points="202.58,-193.4 212.99,-191.45 203.63,-186.48 202.58,-193.4"/>
</g>
<!-- Node7 -->
<g id="node7" class="node">
<title>Node7</title>
<g id="a_node7"><a xlink:href="../../db/de2/naval__battle_8c.html#a521043b369238e618dcc9364b40448ef" target="_top" xlink:title="Function printMessage Responsible for printing the auxiliary message.">
<polygon fill="white" stroke="black" points="231.5,-114.5 231.5,-133.5 308.5,-133.5 308.5,-114.5 231.5,-114.5"/>
<text text-anchor="middle" x="270" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">printMessage</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node7 -->
<g id="edge6" class="edge">
<title>Node1&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M38.44,-160.27C67.85,-157.4 127.14,-151.15 177,-143 191.38,-140.65 206.92,-137.63 221.07,-134.69"/>
<polygon fill="midnightblue" stroke="midnightblue" points="222.02,-138.06 231.09,-132.57 220.58,-131.21 222.02,-138.06"/>
</g>
<!-- Node8 -->
<g id="node8" class="node">
<title>Node8</title>
<g id="a_node8"><a xlink:href="../../db/de2/naval__battle_8c.html#a2d65de2c86c7015d7ca400dfca0f25dc" target="_top" xlink:title="Function printMessageScore Responsible for printing the score messages.">
<polygon fill="white" stroke="black" points="74,-114.5 74,-133.5 177,-133.5 177,-114.5 74,-114.5"/>
<text text-anchor="middle" x="125.5" y="-121.5" font-family="Helvetica,sans-Serif" font-size="10.00">printMessageScore</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node8 -->
<g id="edge7" class="edge">
<title>Node1&#45;&gt;Node8</title>
<path fill="none" stroke="midnightblue" d="M38.2,-155.38C52.09,-150.33 71.65,-143.22 88.64,-137.04"/>
<polygon fill="midnightblue" stroke="midnightblue" points="90.08,-140.24 98.28,-133.53 87.69,-133.66 90.08,-140.24"/>
</g>
<!-- Node9 -->
<g id="node9" class="node">
<title>Node9</title>
<g id="a_node9"><a xlink:href="../../db/de2/naval__battle_8c.html#a5c84d83e31ca6a320b6ea8081402686a" target="_top" xlink:title="Function printPositioning Responsible for printing messages for positioning boats on the board; of pl...">
<polygon fill="white" stroke="black" points="83,-76.5 83,-95.5 168,-95.5 168,-76.5 83,-76.5"/>
<text text-anchor="middle" x="125.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">printPositioning</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node9 -->
<g id="edge8" class="edge">
<title>Node1&#45;&gt;Node9</title>
<path fill="none" stroke="midnightblue" d="M26.99,-152.24C36.39,-139.74 54.24,-118.12 74,-105 76.9,-103.08 80.02,-101.31 83.23,-99.7"/>
<polygon fill="midnightblue" stroke="midnightblue" points="84.76,-102.85 92.44,-95.55 81.89,-96.46 84.76,-102.85"/>
</g>
<!-- Node10 -->
<g id="node10" class="node">
<title>Node10</title>
<g id="a_node10"><a xlink:href="../../db/de2/naval__battle_8c.html#ad527fa96e729742a231c4535e112526a" target="_top" xlink:title="Function printsTray Responsible for printing the visual board for the user.">
<polygon fill="white" stroke="black" points="95,-38.5 95,-57.5 156,-57.5 156,-38.5 95,-38.5"/>
<text text-anchor="middle" x="125.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">printsTray</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node10 -->
<g id="edge10" class="edge">
<title>Node1&#45;&gt;Node10</title>
<path fill="none" stroke="midnightblue" d="M22.95,-152.48C29.26,-133.57 45.87,-91.03 74,-67 77.46,-64.05 81.42,-61.53 85.58,-59.39"/>
<polygon fill="midnightblue" stroke="midnightblue" points="87.12,-62.53 94.85,-55.28 84.29,-56.13 87.12,-62.53"/>
</g>
<!-- Node12 -->
<g id="node12" class="node">
<title>Node12</title>
<g id="a_node12"><a xlink:href="../../db/de2/naval__battle_8c.html#a23e98ed36ca08c1b4bb86c86f48f6e70" target="_top" xlink:title="Function shoot Responsible for saying if he hit a boat.">
<polygon fill="white" stroke="black" points="105,-0.5 105,-19.5 146,-19.5 146,-0.5 105,-0.5"/>
<text text-anchor="middle" x="125.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">shoot</text>
</a>
</g>
</g>
<!-- Node1&#45;&gt;Node12 -->
<g id="edge12" class="edge">
<title>Node1&#45;&gt;Node12</title>
<path fill="none" stroke="midnightblue" d="M21.27,-152.16C24.92,-127.87 37.59,-64.48 74,-29 79.78,-23.36 87.4,-19.37 94.96,-16.55"/>
<polygon fill="midnightblue" stroke="midnightblue" points="96.22,-19.82 104.7,-13.48 94.11,-13.15 96.22,-19.82"/>
</g>
<!-- Node5 -->
<g id="node5" class="node">
<title>Node5</title>
<g id="a_node5"><a xlink:href="../../db/de2/naval__battle_8c.html#a4a5686c91f144d07eff1c6576303962d" target="_top" xlink:title="Function validatePosition Responsible for checking if the position can receive the boat.">
<polygon fill="white" stroke="black" points="226.5,-228.5 226.5,-247.5 313.5,-247.5 313.5,-228.5 226.5,-228.5"/>
<text text-anchor="middle" x="270" y="-235.5" font-family="Helvetica,sans-Serif" font-size="10.00">validatePosition</text>
</a>
</g>
</g>
<!-- Node4&#45;&gt;Node5 -->
<g id="edge4" class="edge">
<title>Node4&#45;&gt;Node5</title>
<path fill="none" stroke="midnightblue" d="M161.72,-238C178.13,-238 197.99,-238 216.14,-238"/>
<polygon fill="midnightblue" stroke="midnightblue" points="216.31,-241.5 226.31,-238 216.31,-234.5 216.31,-241.5"/>
</g>
<!-- Node4&#45;&gt;Node6 -->
<g id="edge5" class="edge">
<title>Node4&#45;&gt;Node6</title>
<path fill="none" stroke="midnightblue" d="M161.72,-228.61C180.34,-223.64 203.4,-217.49 223.37,-212.17"/>
<polygon fill="midnightblue" stroke="midnightblue" points="224.43,-215.51 233.19,-209.55 222.63,-208.74 224.43,-215.51"/>
</g>
<!-- Node9&#45;&gt;Node7 -->
<g id="edge9" class="edge">
<title>Node9&#45;&gt;Node7</title>
<path fill="none" stroke="midnightblue" d="M162.46,-95.59C180.94,-100.52 203.66,-106.57 223.36,-111.83"/>
<polygon fill="midnightblue" stroke="midnightblue" points="222.49,-115.22 233.05,-114.41 224.29,-108.46 222.49,-115.22"/>
</g>
<!-- Node11 -->
<g id="node11" class="node">
<title>Node11</title>
<g id="a_node11"><a xlink:href="../../db/de2/naval__battle_8c.html#a3889e1ee574e03ffdde8804180d57543" target="_top" xlink:title="Function printTable Responsible for printing the board.">
<polygon fill="white" stroke="black" points="240,-38.5 240,-57.5 300,-57.5 300,-38.5 240,-38.5"/>
<text text-anchor="middle" x="270" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">printTable</text>
</a>
</g>
</g>
<!-- Node10&#45;&gt;Node11 -->
<g id="edge11" class="edge">
<title>Node10&#45;&gt;Node11</title>
<path fill="none" stroke="midnightblue" d="M156.03,-48C177.38,-48 206.44,-48 229.75,-48"/>
<polygon fill="midnightblue" stroke="midnightblue" points="230,-51.5 240,-48 230,-44.5 230,-51.5"/>
</g>
</g>
</svg>