<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>C# II by James Gordon</title>
      <link>https://padlet.com/james_gordon/9vph6droh2px</link>
      <description>Made with the best of intentions</description>
      <language>en-us</language>
      <pubDate>2017-09-22 22:52:05 UTC</pubDate>
      <lastBuildDate>2017-09-25 16:08:24 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>0</url>
      </image>
      <item>
         <title>grid, cell and driver classes written by Caleb - </title>
         <author>james_gordon</author>
         <link>https://padlet.com/james_gordon/9vph6droh2px/wish/190314285</link>
         <description><![CDATA[<div>/// Caleb Ljunggren<br>/// CST-227<br><br><br>using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Text;<br>using System.Threading.Tasks;<br><br>namespace MilestoneMinesweeper {<br>    class Cell {<br>        private int row              { get; set; }<br>        private int column           { get; set; }<br>        private bool wasVisited      { get; set; }<br>        private bool isLive          { get; set; }<br>        private int liveNeighbors    { get; set; }<br><br>        public Cell() {<br>            row = -1;<br>            column = -1;<br>            wasVisited = false;<br>            isLive = false;<br>            liveNeighbors = 0;<br>        }<br>    }<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2017-09-22 22:54:03 UTC</pubDate>
         <guid>https://padlet.com/james_gordon/9vph6droh2px/wish/190314285</guid>
      </item>
      <item>
         <title>/// Caleb Ljunggren///using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MilestoneMinesweeper {    class Driver    {        static int gridSize;        static void Main(string[] args)        {            Cell c = new Cell();            //Prompts user for the size of the game&#39;s grid and saves it as an integer            Console.Write(&quot;Enter the size of your grid that is between 2 and 12 (The grid is a square): &quot;);            gridSize = Convert.ToInt32(Console.ReadLine());            //If the grid is larger then 12, prompts user for a grid size 12 or smaller. Else continues            while(gridSize &gt; 12 || gridSize &lt; 2) {                Console.WriteLine(&quot;Invalid grid size, please enter a valid grid size.&quot;);                gridSize = Convert.ToInt32(Console.ReadLine());            }            Grid userGridSize = new Grid(gridSize);        }    }}</title>
         <author>james_gordon</author>
         <link>https://padlet.com/james_gordon/9vph6droh2px/wish/190314720</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2017-09-22 22:59:11 UTC</pubDate>
         <guid>https://padlet.com/james_gordon/9vph6droh2px/wish/190314720</guid>
      </item>
      <item>
         <title>/// Caleb Ljunggren///using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MilestoneMinesweeper {    class Grid {        private int[,] grid; //2D array of cells. (row and column)        //Method that activates some of the cells. (random number) (15-20% live cells)        public void cellActivation() {            Random randomNum = new Random();            double activatedCellsPercentage = randomNum.Next(15,20) * 0.01;        }        //Method that sets the count of each cell&#39;s live neighbors. (If cell is live, count should be 9)        public void countNeighbors() {        }        /*Method that reveals the grid. (if cell is live, asterick should be displayed. If not live, show number          of live neighbors. */        public void displayGrid(int gridSize) {            //For statement that display the row index            Console.Write(&quot;\n      &quot;);            for (int i = 0; i &lt; gridSize; i++) {                Console.Write(&quot;[{0}]   &quot;, (i + 1));            }            Console.WriteLine(&quot;\n&quot;);            for (int col = 0; col &lt; gridSize; col++) {                //For statement that displays the column index                if(col &lt; 9)                    Console.Write(&quot;[{0}]   &quot;, (col + 1));                else                    Console.Write(&quot;[{0}]  &quot;, (col + 1));                //For statement to display the cell&#39;s content for each row                for (int row = 0; row &lt; gridSize; row++)                        if(row &lt; 9)                            Console.Write(&quot;[ ]   &quot;);                        else                            Console.Write(&quot;[ ]    &quot;);                Console.WriteLine(&quot;\n&quot;);            }            Console.WriteLine(&quot;\n&quot;);        }        //Constructror that allocates space for the grid and initiates it with cells.        public Grid(int gridSize) {            grid = new int [gridSize,gridSize];            displayGrid(gridSize);            cellActivation();        }    }}</title>
         <author>james_gordon</author>
         <link>https://padlet.com/james_gordon/9vph6droh2px/wish/190314852</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2017-09-22 23:00:51 UTC</pubDate>
         <guid>https://padlet.com/james_gordon/9vph6droh2px/wish/190314852</guid>
      </item>
   </channel>
</rss>
