Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
AnswerRe: problem in input Pin
Wendelius26-Sep-08 22:58
mentorWendelius26-Sep-08 22:58 
AnswerRe: problem in input Pin
Pedram Behroozi26-Sep-08 23:15
Pedram Behroozi26-Sep-08 23:15 
GeneralRe: problem in input Pin
NiloofarNoroozi27-Sep-08 0:20
NiloofarNoroozi27-Sep-08 0:20 
GeneralRe: problem in input Pin
Pedram Behroozi27-Sep-08 0:52
Pedram Behroozi27-Sep-08 0:52 
AnswerRe: problem in input Pin
Paul Conrad27-Sep-08 5:03
professionalPaul Conrad27-Sep-08 5:03 
AnswerRe: problem in input Pin
Mohammad Dayyan27-Sep-08 16:58
Mohammad Dayyan27-Sep-08 16:58 
AnswerRe: problem in input Pin
nelsonpaixao28-Sep-08 13:06
nelsonpaixao28-Sep-08 13:06 
QuestionHow do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Angelinna26-Sep-08 22:10
Angelinna26-Sep-08 22:10 
using System;
using System.Collections.Generic;
using System.Text;

public class Minimax
{
static void Main(string[] args)
{
// generate a simple game tree, starting with the root
Tree tree = new Tree(0);

// children of the root
tree.children = new Forest(new int[] { 0, 0 });

// children of the left child of the root
tree.children.first.children = new Forest(new int[] { 0, 7, 9 });

// children of the right child of the root
tree.children.rest.first.children = new Forest(new int[] { 4, 8, 6 });

// children of the leftmost child of the left child of the root
tree.children.first.children.first.children = new Forest(new int[] { 5, 3, 1 });


// write the expected and calculated minimax values to the console
Console.WriteLine("Expected minimax value is 5");
Console.WriteLine("Calculated minimax value of the tree " + tree.Minimax(true));
//Console.Write(tree.children.first);
Console.WriteLine("Press any key to exit ...");
Console.ReadKey();
AnswerRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Pedram Behroozi26-Sep-08 22:51
Pedram Behroozi26-Sep-08 22:51 
GeneralRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
Angelinna27-Sep-08 1:30
Angelinna27-Sep-08 1:30 
AnswerRe: How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ?? Pin
wy.net27-Sep-08 17:46
wy.net27-Sep-08 17:46 
Questionhow to access c# array in VBA Pin
newbieNeeraj26-Sep-08 20:02
newbieNeeraj26-Sep-08 20:02 
AnswerRe: how to access c# array in VBA Pin
Pedram Behroozi26-Sep-08 20:58
Pedram Behroozi26-Sep-08 20:58 
GeneralRe: how to access c# array in VBA Pin
newbieNeeraj26-Sep-08 21:17
newbieNeeraj26-Sep-08 21:17 
GeneralRe: how to access c# array in VBA [modified] Pin
Pedram Behroozi26-Sep-08 21:43
Pedram Behroozi26-Sep-08 21:43 
GeneralRe: how to access c# array in VBA Pin
newbieNeeraj28-Sep-08 14:31
newbieNeeraj28-Sep-08 14:31 
GeneralRe: how to access c# array in VBA Pin
Pedram Behroozi1-Oct-08 3:08
Pedram Behroozi1-Oct-08 3:08 
QuestionHow to work with Method : Find in richTextBox Pin
Laji5926-Sep-08 19:49
Laji5926-Sep-08 19:49 
AnswerRe: How to work with Method : Find in richTextBox Pin
Pedram Behroozi26-Sep-08 21:09
Pedram Behroozi26-Sep-08 21:09 
GeneralRe: How to work with Method : Find in richTextBox Pin
Laji5926-Sep-08 21:17
Laji5926-Sep-08 21:17 
GeneralRe: How to work with Method : Find in richTextBox Pin
Pedram Behroozi26-Sep-08 21:32
Pedram Behroozi26-Sep-08 21:32 
Questionhow we implement Slide-In Menu Bar in windows application using c#? Pin
g_amol26-Sep-08 19:22
g_amol26-Sep-08 19:22 
AnswerRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
Pedram Behroozi26-Sep-08 19:47
Pedram Behroozi26-Sep-08 19:47 
GeneralRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
g_amol26-Sep-08 19:55
g_amol26-Sep-08 19:55 
GeneralRe: how we implement Slide-In Menu Bar in windows application using c#? Pin
Pedram Behroozi26-Sep-08 20:43
Pedram Behroozi26-Sep-08 20:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.