begin process at 2012 02 16 00:01:35
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Jeux

 > TIKETAKETOE

TIKETAKETOE


 Information sur la source

Note :
9 / 10 - par 2 personnes
9,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Jeux Niveau :Débutant Date de création :20/05/2003 Date de mise à jour :20/05/2003 02:28:24 Vu / téléchargé :2 009 / 107

Auteur : SamuelCadieux

Ecrire un message privé
Commentaire sur cette source (4)
Ajouter un commentaire et/ou une note

 Description

Cliquez pour voir la capture en taille normale
héhé le fameux jeux, bien le voici mais jorais voulu ke mettre en «multiplayer» mais je navais pas les conaissanses D:.
Alors si vous voulez participer pour le rendre, nésitez pas ;D.
Mouais il nes pas tres optimiser,je le sais.

Source

  • Dim couleur As Boolean
  • Private Sub Form_Load()
  • couleur = True
  • End Sub
  • Private Sub recommencer_Click()
  • For i = tictac.LBound To tictac.UBound
  • tictac(i).Enabled = True
  • tictac(i).BackColor = RGB(192, 192, 192)
  • couleur = True
  • ki.Caption = "C'est aux rouges de jouer!"
  • winner.Caption = ""
  • Next i
  • End Sub
  • Private Sub tictac_Click(index As Integer)
  • If couleur = True Then
  • tictac(index).BackColor = RGB(255, 0, 0)
  • couleur = False
  • tictac(index).Enabled = False
  • testr (index)
  • ki.Caption = "C'est aux verts de jouer!"
  • Else
  • tictac(index).BackColor = RGB(0, 255, 0)
  • couleur = True
  • tictac(index).Enabled = False
  • testv (index)
  • ki.Caption = "C'est aux rouges de jouer!"
  • End If
  • End Sub
  • Public Sub testr(index)
  • If tictac(1).BackColor = tictac(2).BackColor And tictac(2).BackColor = tictac(3).BackColor And tictac(3).BackColor = RGB(255, 0, 0) Or _
  • tictac(1).BackColor = tictac(4).BackColor And tictac(4).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(255, 0, 0) Or _
  • tictac(1).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Or _
  • tictac(2).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(8).BackColor And tictac(8).BackColor = RGB(255, 0, 0) Or _
  • tictac(3).BackColor = tictac(6).BackColor And tictac(6).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Or _
  • tictac(3).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(255, 0, 0) Or _
  • tictac(4).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(6).BackColor And tictac(6).BackColor = RGB(255, 0, 0) Or _
  • tictac(7).BackColor = tictac(8).BackColor And tictac(8).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Then
  • If tictac(index).BackColor = RGB(255, 0, 0) Then
  • winner.Caption = "Les rouges ont gangé!"
  • ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
  • End If
  • For i = tictac.LBound To tictac.UBound
  • tictac(i).Enabled = False
  • Next i
  • ElseIf tictac(1).Enabled = False And tictac(2).Enabled = False And tictac(3).Enabled = False And tictac(4).Enabled = False And tictac(5).Enabled = False And tictac(6).Enabled = False And tictac(7).Enabled = False And tictac(8).Enabled = False And tictac(9).Enabled = False Then
  • ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
  • winner.Caption = "Partie null!"
  • End If
  • End Sub
  • Public Sub testv(index)
  • If tictac(1).BackColor = tictac(2).BackColor And tictac(2).BackColor = tictac(3).BackColor And tictac(3).BackColor = RGB(0, 255, 0) Or _
  • tictac(1).BackColor = tictac(4).BackColor And tictac(4).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(0, 255, 0) Or _
  • tictac(1).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Or _
  • tictac(2).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(8).BackColor And tictac(8).BackColor = RGB(0, 255, 0) Or _
  • tictac(3).BackColor = tictac(6).BackColor And tictac(6).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Or _
  • tictac(3).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(0, 255, 0) Or _
  • tictac(4).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(6).BackColor And tictac(6).BackColor = RGB(0, 255, 0) Or _
  • tictac(7).BackColor = tictac(8).BackColor And tictac(8).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Then
  • If tictac(index).BackColor = RGB(0, 255, 0) Then
  • winner.Caption = "Les verts ont gangé!"
  • ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
  • End If
  • For i = tictac.LBound To tictac.UBound
  • tictac(i).Enabled = False
  • Next i
  • ElseIf tictac(1).Enabled = False And tictac(2).Enabled = False And tictac(3).Enabled = False And tictac(4).Enabled = False And tictac(5).Enabled = False And tictac(6).Enabled = False And tictac(7).Enabled = False And tictac(8).Enabled = False And tictac(9).Enabled = False Then
  • ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
  • winner.Caption = "Partie null!"
  • End If
  • End Sub
Dim couleur As Boolean
Private Sub Form_Load()
couleur = True
End Sub

Private Sub recommencer_Click()
For i = tictac.LBound To tictac.UBound
    tictac(i).Enabled = True
    tictac(i).BackColor = RGB(192, 192, 192)
    couleur = True
    ki.Caption = "C'est aux rouges de jouer!"
    winner.Caption = ""
Next i
End Sub

Private Sub tictac_Click(index As Integer)
If couleur = True Then
    tictac(index).BackColor = RGB(255, 0, 0)
    couleur = False
    tictac(index).Enabled = False
    testr (index)
    ki.Caption = "C'est aux verts de jouer!"
Else
    tictac(index).BackColor = RGB(0, 255, 0)
    couleur = True
    tictac(index).Enabled = False
    testv (index)
    ki.Caption = "C'est aux rouges de jouer!"
End If
End Sub
Public Sub testr(index)
If tictac(1).BackColor = tictac(2).BackColor And tictac(2).BackColor = tictac(3).BackColor And tictac(3).BackColor = RGB(255, 0, 0) Or _
    tictac(1).BackColor = tictac(4).BackColor And tictac(4).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(255, 0, 0) Or _
    tictac(1).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Or _
    tictac(2).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(8).BackColor And tictac(8).BackColor = RGB(255, 0, 0) Or _
    tictac(3).BackColor = tictac(6).BackColor And tictac(6).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Or _
    tictac(3).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(255, 0, 0) Or _
    tictac(4).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(6).BackColor And tictac(6).BackColor = RGB(255, 0, 0) Or _
    tictac(7).BackColor = tictac(8).BackColor And tictac(8).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(255, 0, 0) Then
        If tictac(index).BackColor = RGB(255, 0, 0) Then
            winner.Caption = "Les rouges ont gangé!"
            ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
        End If
    For i = tictac.LBound To tictac.UBound
        tictac(i).Enabled = False
    Next i
ElseIf tictac(1).Enabled = False And tictac(2).Enabled = False And tictac(3).Enabled = False And tictac(4).Enabled = False And tictac(5).Enabled = False And tictac(6).Enabled = False And tictac(7).Enabled = False And tictac(8).Enabled = False And tictac(9).Enabled = False Then
    ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
    winner.Caption = "Partie null!"
End If
End Sub
Public Sub testv(index)
If tictac(1).BackColor = tictac(2).BackColor And tictac(2).BackColor = tictac(3).BackColor And tictac(3).BackColor = RGB(0, 255, 0) Or _
    tictac(1).BackColor = tictac(4).BackColor And tictac(4).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(0, 255, 0) Or _
    tictac(1).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Or _
    tictac(2).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(8).BackColor And tictac(8).BackColor = RGB(0, 255, 0) Or _
    tictac(3).BackColor = tictac(6).BackColor And tictac(6).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Or _
    tictac(3).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(7).BackColor And tictac(7).BackColor = RGB(0, 255, 0) Or _
    tictac(4).BackColor = tictac(5).BackColor And tictac(5).BackColor = tictac(6).BackColor And tictac(6).BackColor = RGB(0, 255, 0) Or _
    tictac(7).BackColor = tictac(8).BackColor And tictac(8).BackColor = tictac(9).BackColor And tictac(9).BackColor = RGB(0, 255, 0) Then
        If tictac(index).BackColor = RGB(0, 255, 0) Then
            winner.Caption = "Les verts ont gangé!"
            ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
        End If
    For i = tictac.LBound To tictac.UBound
        tictac(i).Enabled = False
    Next i
ElseIf tictac(1).Enabled = False And tictac(2).Enabled = False And tictac(3).Enabled = False And tictac(4).Enabled = False And tictac(5).Enabled = False And tictac(6).Enabled = False And tictac(7).Enabled = False And tictac(8).Enabled = False And tictac(9).Enabled = False Then
    ki.Caption = "Cliquez sur recommencer pour jouer une autre partie!"
    winner.Caption = "Partie null!"
End If
End Sub


 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Sources du même auteur

Source avec Zip Source avec une capture CRONO :CON MAIS PEU ÊTRE UTILE

 Sources de la même categorie

Source avec Zip Source avec une capture Source .NET (Dotnet) JEU DE MÉMOIRE CLASSIQUE par raffika
Source avec Zip Source avec une capture Source .NET (Dotnet) DES CHIFFRES ET DES LETTRES par ShayW
Source avec Zip Source avec une capture FAIRE REBONDIR PLUSIEURS BALLES par pierreh51
Source avec Zip Source .NET (Dotnet) JE DES BRIQUES MOUVANTES par alpha5
Source avec Zip Source avec une capture TOWER BATTLE 2 par Softmama

Commentaires et avis

Commentaire de jotrash le 20/05/2003 12:27:49

pa mal 8/10 mais ca serait bien de revoir l'aspect graphique lol

Commentaire de SamuelCadieux le 20/05/2003 13:51:05

:D héhé j'avoue, mais je projette d'en faire un jouant en tridimensionnel, en d'autre mots 3 feuilles le tic tac toe qui donneront limpression d'être en 3d. bha c a suivre

Commentaire de Weado le 20/05/2003 23:44:22

bon potentiel pour un débutant
8/10

Commentaire de abronsius le 27/05/2003 08:09:38

Mon Dieu, les rouges ont gangé !! Ca devait finir par arriver... pour info, y avait, à l'époque, le TIC TAC TOE 3D totalement écrit en Gwbasic qui faisait du 4x4x4... pourquoi pas remettre ca à la mode.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,764 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales