Copy Link
Add to Bookmark
Report

AIList Digest Volume 4 Issue 021

eZine's profile picture
Published in 
AIList Digest
 · 1 year ago

AIList Digest             Friday, 7 Feb 1986       Volume 4 : Issue 21 

Today's Topics:
Queries - ISIS & BIB-Format AI References,
Logic Programming - Prolog for Compiler Writing,
Expert Systems & Reports - MRS,
Theory - Dreyfus Article in Technology Review

----------------------------------------------------------------------

Date: Tue, 04 Feb 86 16:19:44 cet
From: WMORTENS%ESTEC.BITNET@WISCVM.WISC.EDU
Subject: Query -- ISIS

From: Uffe K. Mortensen ESA ( The European Space Agency )

Does anybody here know what 'ISIS' is ? I have been told it is a commercial
package for planning/scheduling problems, but I would like to have more
detailed information ( vendor, etc ).

-- Uffe.

------------------------------

Date: 3 Feb 86 18:59:00 GMT
From: pur-ee!uiucdcs!uiucdcsb!mklein@ucbvax.berkeley.edu
Subject: Bib Format AI References Request

I am interested in getting references in bib format for the following
topics, ordered with the stuff most important to me now on top:
* distributed problem solving
* machine learning
* planning
* vision
If you have any references available, please send them to:
mklein@uiucdcsb
Thanks!
Mark Klein

------------------------------

Date: 06 Feb 86 09:37:54 +1100 (Thu)
From: Isaac Balbin <munnari!mulga.oz!isaac@seismo.CSS.GOV>
Subject: Re: Prolog for Compiler Writing

I have not added compilers for prolog written in prolog, nor stuff on
compiling techniques for prolog.

%A H. Derby
%T Using Logic Programming for Compiling APL
%R Technical Report 84-5134
%I Department of Computer Science
%I California Institute of Technology
%C Los Angeles, California
%D 1984

%A G.A. Edgar
%T A Compiler Written in Prolog
%J Dr. Dobbs Journal
%D May, 1985

%A Harald Ganzinger
%A Michael Hanus
%T Modular Logic Programming of Compilers
%J Proceedings of the 2nd IEEE International Symposium on Logic Programming
%C Boston, USA
%D July, 1985

%A D.H.D. Warren
%T Logic for Compiler Writing
%J Software Practice and Experience
%V 10
%N 1
%P 97-125
%D 1980
%O Also available as DAI Research Paper 44
from Department of Artificial Intelligence, University of Edinburgh

Isaac Balbin
===========================
UUCP: {seismo,mcvax,ukc,ubc-vision}!munnari!isaac
ARPA: isaac%munnari.oz@seismo.css.gov
CSNET: isaac%munnari.oz@australia

------------------------------

Date: Tue, 4 Feb 86 15:46:28 EST
From: munnari!goanna.oz!wjb@seismo.CSS.GOV (Warwick Bolam)
Subject: Correction to correction to name of MRS


>From: veach%ukans.csnet@CSNET-RELAY.ARPA
>
>In a recent issue the full name MRS was incorrectly reported.
>
> MRS = "Modifiable Representation System"
>
> (source - "MRS Manual", Michael R. Genesereth, et. al.
> 1980, Stanford Heuristic Programming Project)


In the bibliography of the paper "Partial Programs", Michael R Genesereth,
1984, Stanford HPP:

M. R. Genesereth, R. Greiner, D. E. Smith: "MRS - A Meta-Level
Representation System"
, HPP-83-27, Stanford University HPP, 1983.

Is there anyone who REALLY knows what MRS stands for? I have a number of
MRS documents and NONE of them says "MRS stand for ..."

Warwick Bolam,
Computing Dept, Royal Melbourne Institute of Technology,
Melbourne, Victoria, Australia.

------------------------------

Date: Mon 3 Feb 86 17:15:26-PST
From: Stuart Russell <RUSSELL@SUMEX-AIM.ARPA>
Subject: MRS manual

I have been asked to point out to those who have requested copies of
the MRS manual, or who intend to do so, that a nominal fee of $6.00
(plus tax if in CA) is suggested. At .004 cents per exqusitely chosen word,
it's a bargain.
Stuart Russell (RUSSELL@SUMEX)

------------------------------

Date: 4 Feb 86 13:30:31 GMT
From: Bob Stine <stine@edn-vax.arpa>
Subject: re: Dreyfus article

"Why Computers May Never Think Like People," a recent
diatribe by the brothers Dreyfus, has several problems.
First and foremost is that AI research is implicitly
identified as the development of rule-based systems.
All of the well known limitations of rule-based systems
are inappropriately attributed to AI research as a whole.

There is a deeper problem with the article, that perhaps
springs from a misguided humanism. The article claims
that machines will never duplicate human performance in
cognitive tasks, because humans have "intuition." These
passages would read very much the same if 'magic' were
substituted for 'intuition' - "Human begins have a
magic intelligence that reasoning machines simply cannot
match."
"... a boxer seems to recognize the moment to
begin an attack... ... the boxer is using his magic"
.

The Dreyfus brothers claim that they are not "Luddites,"
that they are not opposed to technology per se, but just
to wasting time and money on AI research. The basis of
their position is that some aspect of human intelligence
is inherently beyond human comprehension.

There certainly are things that humans will never know.
But no one thing is inherently unknowable.

------------------------------

Date: Tue, 4 Feb 86 09:58:53 CST
From: sandon@ai.wisc.edu (Pete Sandon)
Subject: Knowledge Aquisition -vs- Skill Refinement


This is not to defend the Dreyfus brothers, since I have yet to read
their books. On the other hand, I think they make a good point, though
with a bad example, in emphasizing learning as a process of refinement.
The example related in Miles Murdocca's submission is that of learning
to ride a bike through trial and error. The reason the example is a bad
one, is that it fits into the category of skill refinement as AI
researchers would use the term. This leads to the argument that Dreyfus
and Dreyfus are missing the critical distinction between knowledge
acquisition and skill refinement.

My feeling is that too much is made of this distinction. Had the
example been one of learning to distinguish fruits from vegetables,
or one of learning the symptoms of a class of diseases well enough
to diagnose them, this argument would not have arisen. Clearly these
involve knowledge acquisition rather than skill refinement. And yet, it
could be argued, and perhaps is argued by the Dreyfus's, that what
the AI researchers consider to be knowledge acquisition should be
just as much a refinement process guided by trial and error as learning
to ride a bike. Whereas AI considers concept formation to occur as the
acquisition of discrete chunks of knowledge, an alternative is to use
the gradual acquisition of evidence to support one concept definition
over another, in a manner similar to skill refinement.

Of course, if this criticism of AI is correct, AI has already
answered it. The use of connectionist models, and the corresponding
learning mechanisms currently being studied, provide just the sort
of cognitive models that support this refinement type of learning
through trial and error.

--Pete Sandon

------------------------------

Date: 3 Feb 86 17:24:42 GMT
From: nike!caip!im4u!milano!pcook@ucbvax.berkeley.edu
Subject: Re: Technology Review article

In article <7500002@ada-uts.UUCP>, richw@ada-uts.UUCP writes:
>
> Has anyone read the article about AI in the February issue of
> "Technology Review"? You can't miss it -- the cover says something
> like: "In 25 years, AI has still not lived up to its promises and
> there's no reason to think it ever will"
(not a direct quote; I don't
> have the copy with me). General comments?
>
This article is a plug for a book and use of a current topic to get back at
the AI community for an imagined snub. Hubert Dreyfus was stood up by
John McCarthy of Stanford at a debate on a third echelon public tv
station in the bay area, and is still mad.
First, the premise: AI, expert systems, and knowledge-rule based systems
have been overly optimistic in their promises and stand short of delivered
results. Probably true, but many of the systems, once implemented, lose
their mystical qualities, and look a lot like other computer applications.
It's the ones that are in the buliding process which seem to present
extravagant claims.
As presented, however, the article is a shrill cry rather than a reasoned
response. It leans heavily on proof by intense assertion. As a pilot
I find examples which range from dubious to incorrect. As a scientist I
object to the gee whiz Reader's Digest tone. As a retired Air Force Officer
I object to the position that the commander's common sense is the ideal form
of combat decision making. And as a philosopher (albeit not expert) I object
to the muddy intellectual approach, rife with questionable presuppositions,
faulty dilemmas, and illogical conclusions.
I agree that the topic is worthy of discussion- our work to realize the
potential of computers must not degenerate into a fad which will fade
from the scene. But I object to a diatribe where advances in the field
are dismissed as trivial because current systems do not equal human
performance.
--
...Pete Peter G. Cook Lt. Colonel
pcook@mcc.arpa Liaison, Motorola, Inc. USAFR(Ret)
ut-sally!im4u!milano!pcook MCC-Software Technology Program
512-834-3348 9430 Research Blvd. Suite 200
Austin, Texas 78759


[There are, of course, two sides to the McCarthy incident. As I recall
from an old SU-BBoard message, McCarthy had agreed to an interview under
the impression that he would be on the program alone. At the last moment
it was mentioned that Dreyfus had also been invited. Viewing this as "ambush
journalism"
-- my words -- McCarthy declined to participate in the impromptu
debate. No doubt the station was just trying to schedule a lively evening,
but they should have checked with McCarthy and given him time to prepare.
He and Dreyfus have sufficient visibility that a poorly stated remark, on
>>any<< radio station, could affect the future of AI funding. -- KIL]

------------------------------

Date: Thu, 6 Feb 86 08:46 EST
From: Ken Haase <KWH@MIT-AI.ARPA>
Subject: Re: Technology Review article


Date: 3 Feb 86 14:25:24 GMT
From: vax135!miles@ucbvax.berkeley.edu (Miles Murdocca)
Subject: Re: Technology Review article
To: AIList@SRI-AI

The [Technology Review] article was written by the Dreyfuss brothers,
who are famous for making bold statements that AI will never meet the
expectations of the people who fund AI research. They make the claim
that people do not learn to ride a bike by being told how to do it,
but by a trial and error method that isn't represented symbolically.
They use this argument and a few others such as the lack of a
representation for emotions to support their view that AI researchers
are wasting their sponsors' money by knowingly heading down dead-ends.

I don't think the Dreyfus brothers accuse AI researches of knowingly
heading down dead-ends. They just claim that most of ``what people do''
cannot be captured by the ``abstracted representations'' of nearly all
current AI research. I don't agree with this claim, but can't deny that
we (in AI) may be all wrong about our central hypothesis. We just have
to make our hypothesis clear and explicit. I think that most high level
intellectual processes have effective symbolic representations (and I'm
working to find out what such representations might be). That is an
explicit hypothesis of my research. On the other hand, I do not think
that there is anything like a symbolic representation of ``how to ride a
bike''. What happens in such cases is that our intellect ``trains'' the
animal that is the rest of us to ride the bicycle.

As I recall ["Machine Learning", Michalski et al, Ch 1], there are two
basic forms of learning: 'knowledge acquisition' and 'skill refinement'.
The Dreyfuss duo seems to be using a skill refinement problem to refute
the work going on in knowledge acquisition. The distinction between the
two types of learning was recognized by AI researchers years ago, and I
feel that the Dreyfuss two lack credibility since they fail to align their
arguments with the taxonomy of the field.

The alchemists could have made the same argument against arguments for
the periodic table; what the Dreyfus brothers are arguing for is the
need for just such a ``paradigm shift'' in cognitive science. The fact
that this shift will disrupt the foundations of most current AI
technology (most of which is not well proven anyway) should not effect
scientific judgements at all (though, pessimistically, it certainly
will).

In any case, the dichotomy between skill refinement and knowledge
acquisition is even suspect; outside of rote learning of facts, most
gained knowledge is gained by appropriating the knowledge as skills (in
a broad sense of skills, which includes responses, perceptual skills,
etc).

Ken

------------------------------

End of AIList Digest
********************

From vtvax3::foxea@vtcs1 Sat Feb 8 14:51:53 1986
Date: Sat, 8 Feb 86 14:51:47 est
From: vtvax3::foxea@vtcs1.VT
To: fox@vtopus (VTCS1::FOX)
Subject: ailist etc. game msg
Status: RO

From: ARPA%"MEGIDDO@IBM-SJ.ARPA" 7-FEB-1986 18:35
To: FOXEA
Subj:

Received: From WISCVM(SMTPUSR1) by VTVAX3 with RSCS id 4205
for FOXEA@VTVAX3; Fri, 7-FEB-1986 18:34 EST
Received: from BRL-AOS.ARPA by wiscvm.wisc.edu on 02/07/86 at 17:20:00 CST
Received: from ibm-sj.arpa by AOS.BRL.ARPA id a019630; 7 Feb 86 14:15 EST
Date: 7 Feb 86 10:08:45 PST
From: MEGIDDO@IBM-SJ.ARPA
To: THEORY@wisc-rsr0ch, AILIST@sri-ai.ARPA, ARMS-D@mit-mc.ARPA,
ARPANET-BBOARDS@mit-mc.ARPA, EVOLUTION@kestrel.ARPA, MsgGroup@BRL.ARPA,
NA@su-score.ARPA, PHIL-SCI@mit-mc.ARPA, POLI-SCI@rutgers.ARPA,
PROLOG@su-score.ARPA, MEGIDDO@ibm-sj.ARPA

First Announcement of a

COMPUTER PROGRAMS TOURNAMENT
(of the Prisoners' Dilemma game)

1. INTRODUCTION
_______________

This is a first announcement of a tournament for computer programs,
playing the famous Prisoners' Dilemma game. Detailed instructions and
some background information are provided below. The tournament is
organized for the purpose of research and no prizes are offered. It
is intended however that the results and winners' names will be
published with permission from the persons involved. One of the goals
is to see what will happen during a SEQUENCE of tournaments in which
information about the participating programs will be released, so that
participants will be able to revise their programs. The tournament is
open to everyone. However, notice the warnings below. If you have
access to electronic mail then you can participate by submitting a
FORTRAN program according to the instructions below. By doing so you
will also release and waive all your copyright rights and any other
intellectual property rights to your program. It will also be assumed
that you have not violated any rights of any third party. This
announcement also includes some programs that will help you prepare
for the tournament.

2. BACKGROUND
_____________

The so-called prisoners' dilemma game has drawn the attention
of researchers from many fields: psychology, economics, political
science, philosophy, biology, and mathematics. Computer scientists
are also interested in this game in the context of fundamentals of
distributed systems.

The game is simple to describe, does not require much skill and is yet
extremely interesting from both the theoretical and practical points
of view. By the (one-shot) Prisoners' Dilemma game we refer to a game
as follows. The game is played by two players with symmetric roles.
Each has to choose (independently of the other) between playing action
C ("cooperate") or action D ("defect"). The scores to the two
players, corresponding to the four possible combinations of choices of
actions, are as shown in the following table:

Player 2

C D
---------------
| 3 | 4 |
C | | |
| 3 | 0 |
Player 1 |-------|-------|
| 0 | 1 |
D | | |
| 4 | 1 |
---------------

Thus, both players score 3 if both play C. Both score 1 if both play D.
If one plays C and the other one plays D then the one who plays C scores
0 while the other one scores 4.

The prisoner's dilemma game has been the subject of many experiments.
A tournament was organized several years ago by R. Axelrod who later
published a book on it under the title "The evolution of cooperation"
(Basic Books, Inc., New York, 1984).

Following is some discussion for the benefit of readers who are not
familiar with the fundamental considerations of how to play the game. One
should be careful to distinguish the one-shot game from the REPEATED game
in which the (one-shot) game is played many times, and after each round
both players are informed of each other's actions. Furthermore, one
should distinguish between the infinitely repeated game and the finitely
repeated one. These seem to be quite different from the point of view
of equilibrium. An equilibrium in a 2-person game is a pair (S1,S2) of
strategies (one for each player) such that, given that player i (i=1,2)
is playing Si , the other player, j=3-i, scores the maximum if he plays
Sj .

We are interested here in the finitely repeated game where the number
of rounds is known in advance. We first consider the one-shot game.
The analysis of the one-shot game is obvious. Each of the players
realizes that no matter what his opponent does, it is always better
for him to play D rather than C. Thus, under a very weak assumption
of rationality (namely, players do not choose actions that are
strictly dominated by other actions), the pair of actions (D,D)
remains the only rational choice. The resulting score of (1,1) is
inferior to (3,3), which is possible if the choices are (C,C), and
this is the source of the "dilemma".

To get some insight into the more general case, consider first
the 2-round game. After the first round (in which the players choose
independently C or D) each player is informed of the choice of the
other one and then, once again, the players choose independently C or
D. In this game each player has EIGHT strategies that can be coded in
the form XYZ where each of X,Y and Z equals either C or D. The
interpretation of this notation is as follows. (1) Play X in round 1.
(2) In round 2, play Y if the opponent played C and play Z if the
opponent played D. It is easy to verify that any strategy XYZ is
strictly dominated by XDD (that is, regardless of what was done in
round 1, and regardless of what the opponent does in round 2, it is
better to play D rather than C in round 2. However, there is no
domination relation between the strategies CDD and DDD: if player 2
plays DDD then player 1 is better off playing DDD rather than CDD,
whereas if player 2 plays DDC, player 1 is better off playing CDD
rather than DDD. Of course, strategy DDC for player 2 is dominated by
DDD, but in order for player 1 to deduce that player 2 will not play
DDC, he has to assume that player 2 is capable of discovering this
domination. Under such an assumption player 1 can eliminate 2's DDC.
Thus, if both players are "rational" they are left only with strategy
DDD as a reasonable choice.

A similar process of repeatedly eliminating dominated strategies
applies to the general N-round game. It is dominant for both players
to defect in the last round. Therefore (after we drop all strategies
that play C in the last round), it becomes dominant to defect in round
N-1, and so on. This eventually leaves both players only with the
strategy of always playing D.

The winner in both tournaments run by R. Axelrod was the simple
strategy called "Tit-for-Tat". It starts by playing C and in round i+1
plays whatever the opponent played in round i. It seems like a very good
strategy for playing the repeated dilemma for an indefinite number of
rounds. In the N-round game it is obvious that an improvement over Tit-
for-Tat would be to play Tit-for-Tat except for the last round in which
the optimal play is always to defect.

3. HOW TO PARTICIPATE IN THE TOURNAMENT?
________________________________________

If you think you understand the dilemma quite well and would like to
participate in this tournament then please act according to the following
instructions:
1. Design a strategy of how to play the game when the number of rounds
is known in advance. The strategy should specify what to do in round 1
and at any point of the game, knowing what has been done so far and the
number of rounds left, specify what to do in the next round.
2. Write a FORTRAN subroutine with the following specifications. Give
it a six-letter name, for example, the first four letters of your last
name followed by two initials. Suppose you picked the name JONERJ for
your subroutine. Then the first line of your program should look as
follows.

SUBROUTINE JONERJ (N,J,I,M)

The arguments are defined as follows.

N - This is the total number of rounds to be played. Whenever your
program is called it is told the total number of rounds and
this will not change during a single game.
J - This is the serial number of the round you are supposed to play in
the current call.
I - When J is greater than 1, this argument tells you what your opponent
has played in the previous round. If I=1 it means your opponent has
played C. If J=2 then he played D. Any other value is an error.
M - This is what you return as your play in the current round. M=1 means
you play C. M=2 means you play D. Any other value will result in an
error.

Your subroutine may compute anything you wish. In particular, it may
keep track of the entire history of a single (N-round) game. However,
it will not be able to record past games against any opponent since it
will be unloaded at the end of a single N-round game. Please be
reasonable with respect to the space and time you intend your program to
use. Unreasonable programs will have to be dropped from the tournament
at the discretion of the organizers. Also, if your program ever returns
a faulty play, that is, it returns an M which is neither 1 nor 2, then it
will be dropped from the tournament automatically.

3. Fill in the following information (to be transmitted only by
electronic mail):

NAME:_____________________________________________________________
AFFILIATION:______________________________________________________
STREET:___________________________________________________________
CITY:___________________ STATE:_____________ Zip:_______________
COUNTRY:__________________________________________________________
TELEPHONE:________________________________________________________
ELECTRONIC MAIL ADDRESS:__________________________________________


4. Important notice!

_________________________________________________________
| By sending your program to any one of the following |
| addresses you agree to waive and release, to the extent |
| permitted by law, all your copyright rights and other |
| intellectual property rights in your computer program. |
| You also warrant that no portion of your program or its |
| use or distribution, violates or is protected by any |
| copyright or other intellectual property right of any |
| third party. You also warrant you have the right to, |
| and hereby do, grant to IBM a royalty-free license to |
| use your program. If any contestant is a minor under |
| the laws of the state in which contestant resides, at |
| least one of the contestant's parents should sign this |
| warranty and license. IBM may elect to publish the |
| results of the contest; names of participants or their |
| submissions will not be published without the written |
| approval and signature of the individual authors. |
|_________________________________________________________|

Please transmit your program by March 31, 1986, along with the filled
questionnaire to one of the following addresses:

CSNET or ARPANET: megiddo@ibm-sj
VNET or BITNET : megiddo at almvma


4. TRAINING PROGRAM
___________________

For your convenience, we include here an interactive program that lets
you play the game with another "player". While playing this interactive
program please remember that your goal is actually to SCORE high and not
necessarily to BEAT the other player. In the tournament, your ability
to affect the player's total score is limited since he plays against many
other players besides you. Thus you will benefit if you will create
"confidence" so that both of you end up playing C very often. You have
the option of either playing yourself or using the subroutine that
represents you. If you use a subroutine then you have to name it MINE
and follow the instructions in Section 3. Simply append it the following
program. It is advised that you use this option to test your own program
before submitting it to the tournament.

-------------------------------------------------------------------------
INTEGER SCORE,SCORE2,CH1,CH2,PRE1,PRE2,CC,DD,CD,DC
C
DATA CC,DD,CD,DC/3,1,0,4/
20 SCORE = 0
SCORE2 = 0
PRE1=1
PRE2=1
WRITE(6,102)
102 FORMAT(' ENTER NUMBER OF ROUNDS YOU WISH TO PLAY (0=END)')
103 FORMAT (I6)
READ (5,*) NR
IF (NR.LE.0) STOP
118 FORMAT(' WILL YOU (1) PLAY OR WILL YOUR SUBROUTINE (2) DO? (1/2)')
430 WRITE (6,118)
READ (5,*) II
IF (II.EQ.2) GO TO 420
IF (II.NE.1) GO TO 430
420 DO 30 JR = 1, NR
104 FORMAT(' ROUND NO.',I6,' OF',I6,' ROUNDS. PLEASE ENTER 1 OR 2')
IF (II.EQ.2) GO TO 440
WRITE (6,104) JR,NR
40 CONTINUE
READ (5,*) CH1
GO TO 450
440 CALL MINE(NR,JR,PRE2,CH1)
IF ((CH1-1)*(CH1-2)) 470,71,470
470 WRITE (6,117)
117 FORMAT (' YOUR SUBROUTINE RETURNED A FAULTY PLAY')
GO TO 20
450 IF ((CH1-1)*(CH1-2)) 70,71,70
70 IF (CH1.EQ.0) GO TO 20
105 FORMAT(' PLEASE ENTER EITHER 1 OR 2 . (0=END)')
WRITE (6,105)
GO TO 40
71 IF (JR-1) 220,220,230
220 CH2 = 1
IF (NR.EQ.1) CH2 = 2
GO TO 300
230 IF (JR-NR) 250,260,260
250 CH2 = PRE1
GO TO 300
260 CH2 = 2
107 FORMAT(' PLAY WAS: YOU=',I3,' OPPONENT=',I3)
300 WRITE(6,107) CH1,CH2
IF (CH1-1) 110,110,120
110 IF (CH2-1) 130,130,140
130 SCORE = SCORE + CC
SCORE2 = SCORE2 + CC
GO TO 35
140 SCORE = SCORE + CD
SCORE2 = SCORE2 + DC
GO TO 35
120 IF (CH2-1) 150,150,160
150 SCORE = SCORE + DC
SCORE2 = SCORE2 + CD
GO TO 35
160 SCORE = SCORE + DD
SCORE2 = SCORE2 + DD
35 WRITE (6,106) SCORE,SCORE2
106 FORMAT (' NEW TOTAL SCORE: YOU=',I5,' OPPONENT=',I5)
PRE1=CH1
PRE2=CH2
30 CONTINUE
GO TO 20
END
-------------------------------------------------------------------------

5. SAMPLE PROGRAMS
__________________

For your convenience we include here copies of two sample programs.
The first subroutine, called TIFRTA, plays Tit-for-Tat (see Section 2)
except that it always defects in the last round. The second, called
GRIM, starts playing C but switches to D the first time th opponent has
played D. It also always defects in the last round.

-------------------------------------------------------------------------
SUBROUTINE TIFRTA (N,J,IHE,MY)
C
C THIS IS THE TIT-FOR-TAT RULE. IN ROUND 1 PLAY 1. IN ROUND N
C PLAY 0. OTHERWISE, PLAY WHAT THE OPPONENT PLAYED IN THE PRECEDING
C ROUND.
C
C N = TOTAL NUMBER OF ROUNDS
C J = CURRENT ROUND
C IHE = THE CHOICE OF THE OPPONENT IN THE PRECEDING ROUND (1 OR 2)
C MY = MY CHOICE FOR THE CURRENT ROUND (1 OR 2)
C
IF (J-1) 20,20,30
20 MY = 1
IF(N.EQ.1) MY=2
RETURN
30 IF (J-N) 50,60,60
50 MY = IHE
RETURN
60 MY = 2
RETURN
END
C------------------------------------------------------------------------
SUBROUTINE GRIM (N,J,IHE,MY)
C
C THIS IS THE GRIM STRATEGY: START WITH C AND SWITCH TO D
C AS SOON AS THE OPPONENT DOES
C
IF (J-1) 10,10,20
10 IX = 1
20 IF (IHE.EQ.2) IX = 2
IF (J.EQ.N) IX = 2
MY = IX
RETURN
END
-------------------------------------------------------------------------

← previous
next →
loading
sending ...
New to Neperos ? Sign Up for free
download Neperos App from Google Play
install Neperos as PWA

Let's discover also

Recent Articles

Recent Comments

Neperos cookies
This website uses cookies to store your preferences and improve the service. Cookies authorization will allow me and / or my partners to process personal data such as browsing behaviour.

By pressing OK you agree to the Terms of Service and acknowledge the Privacy Policy

By pressing REJECT you will be able to continue to use Neperos (like read articles or write comments) but some important cookies will not be set. This may affect certain features and functions of the platform.
OK
REJECT