Search
 
SCRIPT & CODE EXAMPLE
 

PASCAL

Pascal Game

program game;

var
        Deck    : Array [1..4,1..13] of integer;
        suit_var, card_var : Integer;
        card: integer;

        Shuffle : Array [1..4, 1 ..13] of integer;
        suit2_var, card2_var : Integer;

begin
     for suit_var := 1 to 4 do
                begin
			for card_var := 1 to 13 do
                  for card:= 1 to 13 do

                		Deck[suit_var] [card_var] :=card;
		end;

      for suit_var := 1 to 4 do
                begin
			for card_var := 1 to 13 do
                    begin

                if suit_var=1 then
                write('diamond');

                if suit_var=2 then
                write('clubs');

                if suit_var=3 then
                write('hearts');

                if suit_var=4 then
                write('spades');
                    write(',');

                 if card_var=11 then
                 write('Jack');

              if card_var=12 then
              write('Queen');

              if card_var=13 then
              write('King');

              if card_var=1 then
              write('Ace');

              if card_var=2 then
              write('Two');

              if card_var=3 then
              write('Three');

               if card_var=4 then
               write('Four');

              if card_var=5 then
              write('Five');

              if card_var=6 then
              write('Six');

             if card_var=7 then
             write('Seven');

               if card_var=8 then
               write('Eight');

               if card_var=9 then
               write('Nine');

              if card_var=10 then
              write('Ten');
                    write('    ');
		            end;

              end;
readln;
end.
Comment

PREVIOUS NEXT
Code Example
Pascal :: pascal print 
Powershell :: windows 10 debloat 
Powershell :: takeown /f 
Powershell :: get-childitem supress errors silently 
Powershell :: powershell show which diorecty is temp 
Gdscript :: godot check if in exported version 
Gdscript :: GAScript - Google Sheets - QBO API - Consent Dialogue Box 
Clojure :: toggle button clojure 
Abap :: adobre forms abap tcode 
Erlang :: tcp client erlang 
Assembly :: x86 assembly hello world 
Assembly :: how to open chrome in vbscript 
Assembly :: html drag and drop anywhere 
Assembly :: tqdm iterate over range 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: js on page ready 
Javascript :: open ilnk target js 
Javascript :: refresh window js 
Javascript :: jquery accept only excel file 
Javascript :: check if a variable is undefined jquery 
Javascript :: media query js 
Javascript :: change input placeholder text jquery 
Javascript :: get current url js 
Javascript :: convert to objectid mongoose 
Javascript :: javascript async delay 
Javascript :: javascript refresh page every 30 seconds 
Javascript :: how to change a css variable with javascript 
Javascript :: hide header react navigation 
Javascript :: listing dir by nodejs 
Javascript :: javascript celcius to farenheit 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =