Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

Angelinna

@Angelinna
About
Posts
67
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do I fix this error?
    A Angelinna

    When I do that correction, it then tell me that Error The type 'TictacGame.Form1' already contains a definition for 'Startbutton' and the same for all the buttons shown in the code in my previous message. Why is that?

    C# help question game-dev

  • How do I fix this error?
    A Angelinna

    sorted.Thanks.

    modified on Saturday, October 18, 2008 5:21 AM

    C# help question game-dev

  • How do I fix this error?
    A Angelinna

    Yes. I removed it earlier on.

    C# help question game-dev

  • How do I fix this error?
    A Angelinna

    Tried to.Still not fixed. When I put a descriptive name, it tell me that namespace with that descriptive name already contains a definition for that name .

    C# help question game-dev

  • How do I fix this error?
    A Angelinna

    How do I fix this error which says "The namespace 'Game' already contains a definition for 'Form1'" What does it mean and how do I fix it. It resulted after I wrote this; public class Form1: System.Windows.Forms.Form Thanks.

    C# help question game-dev

  • Monte carlo Rabin_Karp implementation
    A Angelinna

    This is a pseudocode for Monte Carlo rabin_karp algorithm. Input Parameters: p,t Output Parameters: None; Mc_rabin_karp_search(p,t) { m = p.length n = t.length q = randomly chosen prime number less than mn2 r = 2 ^(m-1) mod q //computation of initial remainders f[0]=0 pfinger = 0 for j = 0 to m-1 { f[0] = 2*f[0]+t[j] mod q pfinger = 2*pfinger + p[j]mod q } i = 0; while(i + m<=n) { if ( f[i] = = pfinger) println (“Match at position”+i) f[i + 1] = 2*(f[i] – r*t[i]) + t[i+m]mod q i = i +1 } } What am seeking is a sample of a working code to help me understand it actual implementation. Thanks

    C#

  • Monte carlo Rabin_Karp Search
    A Angelinna

    Thanks, but am after a working example not just a pseudocode.

    Algorithms

  • Monte carlo Rabin_Karp implementation
    A Angelinna

    Where can I find sample codes showing implementation of Monte Carlo rabin_karp search NOT just a pseudocode. Thanks

    C#

  • Monte carlo Rabin_Karp Search
    A Angelinna

    Where can I find sample codes showing implementation of Monte Carlo rabin_karp search. Thanks

    Algorithms

  • How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ??
    A Angelinna

    My question after all is about how to add a code with the variable that holds minimax value of the node, the node having a variable that holds the board position bearing in mind that the value of this valuable can be an array of length 9 which makes values X and O (or 1 and -1 talking of integers) leading to generating a tree automatically by computing successor states for the board positions represented by a particular code, starting with the empty board for the root node, recursively computing successors until terminal nodes reached.

    C# question csharp game-dev data-structures json

  • How do I write a c# minimax code to show resulting values from this info of the start of a game tree program ??
    A Angelinna

    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();

    C# question csharp game-dev data-structures json

  • How do I write a minimax c# code to show the results of the game tree from this info provided...
    A Angelinna

    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();

    C / C++ / MFC csharp game-dev data-structures json question

  • C# code for summing up
    A Angelinna

    Thanks all for your guidance. I am trying to have it all programmed in c#.

    C# csharp question

  • Raising a number to a given power in c#
    A Angelinna

    I believe it has to do with double power(val, n) etc.

    C# csharp question

  • Raising a number to a given power in c#
    A Angelinna

    I just wonder if there is a way of raising a number to a certain power by c# code i.e coding such a function in c#. e.g 3^5,OR 3^x where x can be a variable, now writing this in code form????

    C# csharp question

  • C# code for summing up
    A Angelinna

    Would this operate as a recursive function? If not, how best can one implement the summation recursively.

    C# csharp question

  • C# code for summing up
    A Angelinna

    Just how does a loop get applied in this case.

    C# csharp question

  • C# code for summing up
    A Angelinna

    Is it possible to get an approximate sum of S defined as 1/2 + 1/4 + 1/8 to a certain number of counts? Say up to 1/16? If so how does one write such a code in c# to achieve this? Thanks

    C# csharp question

  • Zeno's paradox
    A Angelinna

    Its all about implementing a recursive function.

    C# question

  • Zeno's paradox
    A Angelinna

    How do I write a console application that imoplements a recursive function that calculates the approximate infinite sum(of time) of zeno's paradox depending on the number of attempts of Archelles to overtake the tortoise. Thanks

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups