C sharp - Codigo del juego picas y fijas

 
Vista:

Codigo del juego picas y fijas

Publicado por Monica (4 intervenciones) el 10/02/2007 01:57:33
Hola, necesito con urgencia, el codigo del juego picas y fijas, donde jueguen: player VS pc, player1 VS player2, pc VS player, desde ya muchas gracias al que me pueda dar alguna pista, por lo menos.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Codigo del juego picas y fijas

Publicado por Monica (4 intervenciones) el 25/02/2007 01:00:18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Threading;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Globalization;
 
namespace proyecto_final
{
    class Program
    {
        static void ranking(string name, TimeSpan duracion)
        {
            Console.WriteLine("{0}, your score is {1}", name, duracion.Seconds);
        }
 
        // Function to test numbers repeat.
        static bool Test(int num)
        {
            string S = num.ToString("D4");
            for (int i = 0; i < S.Length; i++)
                for (int j = 0; j < S.Length; j++)
                    if (i != j)
                        if (S[i] == S[j])
                            return false;
            return true;
        }
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar