- 001
- 002
- 003
- 004
- 005
- 006
- 007
- 008
- 009
- 010
- 011
- 012
- 013
- 014
- 015
- 016
- 017
- 018
- 019
- 020
- 021
- 022
- 023
- 024
- 025
- 026
- 027
- 028
- 029
- 030
- 031
- 032
- 033
- 034
- 035
- 036
- 037
- 038
- 039
- 040
- 041
- 042
- 043
- 044
- 045
- 046
- 047
- 048
- 049
- 050
- 051
- 052
- 053
- 054
- 055
- 056
- 057
- 058
- 059
- 060
- 061
- 062
- 063
- 064
- 065
- 066
- 067
- 068
- 069
- 070
- 071
- 072
- 073
- 074
- 075
- 076
- 077
- 078
- 079
- 080
- 081
- 082
- 083
- 084
- 085
- 086
- 087
- 088
- 089
- 090
- 091
- 092
- 093
- 094
- 095
- 096
- 097
- 098
- 099
- 100
function TForm1.CheckGameO: String;
begin
Result := '';
If (A1.Tag = 2) and (A2.Tag = 2) then
Begin
Result := 'A3';
If not CheckPos(Result) then Exit;
End;
If (A1.Tag = 2) and (A3.Tag = 2) then
Begin
Result := 'A2';
If not CheckPos(Result) then Exit;
End;
If (A1.Tag = 2) and (C3.Tag = 2) then
Begin
Result := 'B2';
If not CheckPos(Result) then Exit;
End;
If (A1.Tag = 2) and (B2.Tag = 2) then
Begin
Result := 'C3';
If not CheckPos(Result) then Exit;
End;
If (A1.Tag = 2) and (B1.Tag = 2) then
Begin
Result := 'C1';
If not CheckPos(Result) then Exit;
End;
If (A1.Tag = 2) and (C1.Tag = 2) then
Begin
Result := 'B1';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (C3.Tag = 2) then
Begin
Result := 'A1';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (A2.Tag = 2) then
Begin
Result := 'C2';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (C2.Tag = 2) then
Begin
Result := 'A2';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (C1.Tag = 2) then
Begin
Result := 'A3';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (A3.Tag = 2) then
Begin
Result := 'C1';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (B1.Tag = 2) then
Begin
Result := 'B3';
If not CheckPos(Result) then Exit;
End;
If (B2.Tag = 2) and (B3.Tag = 2) then
Begin
Result := 'B1';
If not CheckPos(Result) then Exit;
End;
If (C3.Tag = 2) and (A3.Tag = 2) then
Begin
Result := 'B3';
If not CheckPos(Result) then Exit;
End;
If (C3.Tag = 2) and (B3.Tag = 2) then
Begin
Result := 'A3';
If not CheckPos(Result) then Exit;
End;
If (C3.Tag = 2) and (C2.Tag = 2) then
Begin
Result := 'C1';
If not CheckPos(Result) then Exit;
End;
...
ej 06.04.2011 18:31 # +3
Govnocoder#0xFF 06.04.2011 18:41 # 0
bugmenot 06.04.2011 19:39 # 0
http://expert.delphi.int.ru/files/questions/5159.jpg
Govnocoder#0xFF 07.04.2011 10:02 # 0
istem 07.04.2011 03:28 # +2
ctm 07.04.2011 06:43 # 0
а сколько там всего ифов? полноценную логику писать довольно много придется - я бы точно поленился:)
Govnocoder#0xFF 07.04.2011 10:03 # +1
ctm 07.04.2011 10:06 # +3
Lure Of Chaos 07.04.2011 20:45 # 0
bugmenot 07.04.2011 20:48 # +1