It is currently Sat May 03, 2025 6:25 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #21 Posted: Tue May 13, 2014 4:58 am 
Lives in gote
User avatar

Posts: 699
Location: Switzerland
Liked others: 485
Was liked: 166
Rank: DDK
KGS: aco
IGS: oca
OGS: oca
Yes... that's true... that's just that I last touched C at school 20 years ago... and I would like to concentrate on go, not on learning C (again)...

All I need (at least in a first time) is a function that can take a move, a pattern and a game and see if the pattern apply to the move...
so I think doing that in javascript will be faster for me then learning C...

_________________
Converting the book Shape UP! by Charles Matthews/Seong-June Kim
to the gobook format. last updated april 2015 - Index of shapes, p.211 / 216

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #22 Posted: Tue May 13, 2014 5:13 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
oca wrote:
Yes... that's true... that's just that I last touched C at school 20 years ago... and I would like to concentrate on go, not on learning C (again)...

All I need (at least in a first time) is a function that can take a move, a pattern and a game and see if the pattern apply to the move...
so I think doing that in javascript will be faster for me then learning C...


Well, no. Because sgfinfo (from sgfutils) already does this: there's no need to rewrite the pattern-matching. But well, go on. I also prefer tinkering javascript than C (I just commented whole sections of what I have called sgfrender.c for sgfutils and well, C... I also have a toy SGF parser in JS and some other pieces round here, but I eventually rewrote it in go because I wanted to explore +500 games and use a database and I'm more proficient with go than with node) so I'd be happy to play with it when it's a little more "code dense."

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #23 Posted: Wed May 14, 2014 4:28 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
oca wrote:
Yes... that's true... that's just that I last touched C at school 20 years ago... and I would like to concentrate on go, not on learning C (again)...

All I need (at least in a first time) is a function that can take a move, a pattern and a game and see if the pattern apply to the move...
so I think doing that in javascript will be faster for me then learning C...


That's how these things always get started. I would chime in and say. I am charged with maintainance hundreds of pages of classisic asp, vb+HTML+JavaScript and thousands of lines of vb.net thinking to myself if they had only had enough spine to write something strongly typed this would be so much easier to maintain and extend. Of course all the people who made these decisions jumped ship.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #24 Posted: Wed May 14, 2014 5:21 am 
Lives in gote
User avatar

Posts: 699
Location: Switzerland
Liked others: 485
Was liked: 166
Rank: DDK
KGS: aco
IGS: oca
OGS: oca
SmoothOper wrote:
That's how these things always get started. I would chime in and say. I am charged with maintainance hundreds of pages of classisic asp, vb+HTML+JavaScript and thousands of lines of vb.net thinking to myself if they had only had enough spine to write something strongly typed this would be so much easier to maintain and extend. Of course all the people who made these decisions jumped ship.


I understand your point, and quiet agree... but I don't expect to have a large code base... if so I may have choose Haskell or Java + OSGi. But for that "small" project, I think node.js is just fine.

Like in go, we sometimes need a solid connection, and sometimes a faster one... ;)

_________________
Converting the book Shape UP! by Charles Matthews/Seong-June Kim
to the gobook format. last updated april 2015 - Index of shapes, p.211 / 216

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #25 Posted: Thu May 15, 2014 9:25 am 
Lives in gote
User avatar

Posts: 699
Location: Switzerland
Liked others: 485
Was liked: 166
Rank: DDK
KGS: aco
IGS: oca
OGS: oca
That starts to be funny ...
very first results (still a bit wrong I think...)

Code:
Plugin : plugin_count_moves.js
Plugin : plugin_moves.js
----------------------------------------
Found 1 games in file 'sgf/handicap.sgf'
----------------------------------------
PLUGIN : COUNT MOVES

294 moves
----------------------------------------
PLUGIN : MOVE STATISTICS

                  black   white
                  -----   -----
           Nobi :    88      75
         Kosumi :    13      20
           Hane :    29      36
     Ikken tobi :    52      39
     Niken tobi :    17      16
        Kogeima :    11       6
         Ogeima :     2       4
    Daidaigeima :     3       7
    Bamboo join :     5       4
      Cross cut :     1       0
          Tsuke :     7       9
   Shoulder hit :    12      24
            Cut :     7      12

=============================================================
Not identified :
Black : 0

White : 3
MOVE : 1
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
  +--------------------------------------+
0 |. . . . . . . . . . . . . . . . . . . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. . . X . . . . . X . . . . . X . . . |
4 |. . . . . . . . . . . . . . . . . . . |
5 |. . . . . . . . . . . . . . . .(O). . |
6 |. . . . . . . . . . . . . . . . . . . |
7 |. . . . . . . . . . . . . . . . . . . |
8 |. . . . . . . . . . . . . . . . . . . |
9 |. . . X . . . . . X . . . . . X . . . |
0 |. . . . . . . . . . . . . . . . . . . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. . . . . . . . . . . . . . . . . . . |
4 |. . . . . . . . . . . . . . . . . . . |
5 |. . . X . . . . . X . . . . . X . . . |
6 |. . . . . . . . . . . . . . . . . . . |
7 |. . . . . . . . . . . . . . . . . . . |
8 |. . . . . . . . . . . . . . . . . . . |
  +--------------------------------------+

MOVE : 19
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
  +--------------------------------------+
0 |. . . . . . . . . . . . . . . . . . . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. . . X . . . . . X . . . X . X . . . |
4 |. . . . . . . . . . . . . . . . X . . |
5 |. . . . . . . . . . . . . . X O O X . |
6 |. . . . . . . . . . . . . . O . . . . |
7 |. . . . . . . . . . . . . . O X X X . |
8 |. . . . . . . . . . . . . . . O O O . |
9 |. . . X . . . . . X . . . . . X X O . |
0 |. . . . . . . . . . . . . . . . . O . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. .(O). . . . . . . . . . . . . X . . |
4 |. . . . . . . . . . . . . . . . . . . |
5 |. . . X . . . . . X . . . . . X . . . |
6 |. . . . . . . . . . . . . . . . . . . |
7 |. . . . . . . . . . . . . . . . . . . |
8 |. . . . . . . . . . . . . . . . . . . |
  +--------------------------------------+

MOVE : 57
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
  +--------------------------------------+
0 |. . . . . . . . . . . . . . . . . . . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . X O O . . O . X .(O). . . . . . . |
3 |. . X X . . . . . X . . . X . X . . . |
4 |. . . . . . . . . . . . . . . . X . . |
5 |. . . . . . . . . . . . . . X O O X . |
6 |. . X . . . . . . . . . . . O . . . . |
7 |. . . . . . . . . . . . . . O X X X . |
8 |. . . . . . . . . . . . . . . O O O . |
9 |. . . X . . . . . X . . . . . X X O . |
0 |. . . . . . . . . . . . . . . . . O . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. O . . . . . . . . . . . . . . . . . |
3 |. . O . X . . . . . . . . . . . X . . |
4 |. O X . . . . O . O . . . . . . . . . |
5 |. . . X X . . X O X . . . . X X X . . |
6 |. . O O X . . X O X . . . O X O O . . |
7 |. . . . X . . X O . . . O . O X X . . |
8 |. . . . . . . . . . . . . O . . . . . |
  +--------------------------------------+

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

hoshi, komoku, sanssan, kakari, etc...  still to be implemented...




Moves are detected using simple pattern String... so that we can express them wihtout knowing that much of coding... the pattern is rotated and mirrored by the program to get all possibilities.

Code:
Ogeima :
  pattern = [
     "...X",
     "1..."
   ]


Shoulder hit :
  pattern = [
    ".O",
    "1."
  ]


where "1" is the position of the last played stone, "X" is a stone of same color then "1" (which can be black or white, not as in go diagram...) and "O" is a stone of other color then "1".
"." is a free intersection.

I still have to add things like "?" for "anything" and "#" for any stone color.

Here are the patterns for now, as they appear in the code (should be readable I hope :geek: ...).

var patterns = [
{
name : "Nobi", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = ["X1"];
return p.isPattern(pattern, stone, game) ;
}
},{
name : "Kosumi", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
".1",
"X."];
return p.isPattern(pattern, stone, game);
}
},{
name : "Hane", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
".X",
"1O"];
return p.isPattern(pattern, stone,game);
}
},{
name : "Ikken tobi", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = ["X.1"];
return p.isPattern(pattern, stone,game);
}
},{
name : "Niken tobi", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = ["X..1"];
return p.isPattern(pattern, stone,game);
}
},{
name : "Kogeima", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"..X",
"1.."];
return p.isPattern(pattern,stone,game);
}
},{
name : "Ogeima", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"...X",
"1..."];
return p.isPattern(pattern,stone,game);
}
},{
name : "Daidaigeima", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"....X",
"1...."];
return p.isPattern(pattern,stone,game);
}
},{
name : "Bamboo join", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"X.X",
"1.X"];
return p.isPattern(pattern, stone, game );
}
},{
name : "Cross cut", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"....",
".OX.",
".1O.",
"...."];
return p.isPattern(pattern, stone, game );
}
},{
name : "Tsuke", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
".O.",
".1."];
return p.isPattern(pattern, stone, game );
}
},{
name : "Shoulder hit", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
".O",
"1."];
return p.isPattern(pattern, stone, game );
}
},{
name : "Cut", black : 0, white : 0,
is : function(move, stone, st_group, game, st_groups) {
var pattern = [
"OX",
"1O"];
return p.isPattern(pattern, stone, game );
}
}


Still a bit of cleaning and I will post a first beta version for whose who may want to play with it...

_________________
Converting the book Shape UP! by Charles Matthews/Seong-June Kim
to the gobook format. last updated april 2015 - Index of shapes, p.211 / 216


This post by oca was liked by: Dusk Eagle
Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #26 Posted: Thu May 15, 2014 2:04 pm 
Lives in sente
User avatar

Posts: 844
Liked others: 180
Was liked: 151
Rank: 3d
GD Posts: 422
KGS: komi
SmoothOper wrote:
...thousands of lines of vb.net...if they had only had...strongly typed this...


Code:
' Enable VB.Net strong typing
Option Strict On


They didn't do this, then?


This post by quantumf was liked by: RBerenguel
Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #27 Posted: Sat May 17, 2014 4:28 pm 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
quantumf wrote:
SmoothOper wrote:
...thousands of lines of vb.net...if they had only had...strongly typed this...


Code:
' Enable VB.Net strong typing
Option Strict On


They didn't do this, then?


What's next is someone going to point out how you can actually write object oriented VB. Sigh

If dumb response then
With sarcasm

let's all write object oriented strongly typed code in a language that wasn't designed for it, boy that'll be easy...

End with sarcasm

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #28 Posted: Sun May 18, 2014 6:53 am 
Lives in sente
User avatar

Posts: 844
Liked others: 180
Was liked: 151
Rank: 3d
GD Posts: 422
KGS: komi
As VB.NET is equivalent to c# in essentially every way, it's clearly an object oriented language by design. It has the flavour of basic, with it's terms and symbols, and in a concession to VB6 programmers, it allows a procedural, non-OO form. I have developed multiple large (object oriented) systems with VB.NET, and find it a perfectly comfortable OO language

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #29 Posted: Sun May 18, 2014 7:41 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
quantumf wrote:
As VB.NET is equivalent to c# in essentially every way, it's clearly an object oriented language by design. It has the flavour of basic, with it's terms and symbols, and in a concession to VB6 programmers, it allows a procedural, non-OO form. I have developed multiple large (object oriented) systems with VB.NET, and find it a perfectly comfortable OO language


On error resume next

On erro goto....

Clearly not OO or easy to manage in large projects. I find these constructs especially discomforting, and especially error prone, for anything but the simplest of code. Not to mention, that sooner or later in large projects you have to do an N^2 or N*log(n) operation like sorts or searches, then it pretty much crawls to a halt. Furthermore, VB programmers like many single language programmers fail to recognize the relative disadvantages of their language, and are generally thin skinned and uncool about it. After all if it were object oriented then they shouldn't feel that it is too difficult to use another language in the first place, but again this is not the case.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #30 Posted: Sun May 18, 2014 7:45 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
SmoothOper wrote:
quantumf wrote:
As VB.NET is equivalent to c# in essentially every way, it's clearly an object oriented language by design. It has the flavour of basic, with it's terms and symbols, and in a concession to VB6 programmers, it allows a procedural, non-OO form. I have developed multiple large (object oriented) systems with VB.NET, and find it a perfectly comfortable OO language


On error resume next

On erro goto....

Clearly not OO or easy to manage in large projects. I find these constructs especially discomforting, and especially error prone, for anything but the simplest of code. Not to mention, that sooner or later in large projects you have to do an N^2 or N*log(n) operation like sorts or searches, then it pretty much crawls to a halt. Furthermore, VB programmers like many single language programmers fail to recognize the relative disadvantages of their language, and are generally thin skinned and uncool about it. After all if it were object oriented then they shouldn't feel that it is too difficult to use another language in the first place, but again this is not the case.


Like object-orientedness was the panacea to solve everything. Lisp programmers are pretty much happy without ever resorting to CLOS. Go has interfaces and structs and it works pretty well. The example above? This is error handling. Error handling is good, and there's no need to add object-mumbo-jumbo to do it. Quite likely the problem this code had was orthogonality, or quite more likely, a bad maintainer.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #31 Posted: Sun May 18, 2014 8:04 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
RBerenguel wrote:
SmoothOper wrote:
quantumf wrote:
As VB.NET is equivalent to c# in essentially every way, it's clearly an object oriented language by design. It has the flavour of basic, with it's terms and symbols, and in a concession to VB6 programmers, it allows a procedural, non-OO form. I have developed multiple large (object oriented) systems with VB.NET, and find it a perfectly comfortable OO language


On error resume next

On erro goto....

Clearly not OO or easy to manage in large projects. I find these constructs especially discomforting, and especially error prone, for anything but the simplest of code. Not to mention, that sooner or later in large projects you have to do an N^2 or N*log(n) operation like sorts or searches, then it pretty much crawls to a halt. Furthermore, VB programmers like many single language programmers fail to recognize the relative disadvantages of their language, and are generally thin skinned and uncool about it. After all if it were object oriented then they shouldn't feel that it is too difficult to use another language in the first place, but again this is not the case.


Like object-orientedness was the panacea to solve everything. Lisp programmers are pretty much happy without ever resorting to CLOS. Go has interfaces and structs and it works pretty well. The example above? This is error handling. Error handling is good, and there's no need to add object-mumbo-jumbo to do it. Quite likely the problem this code had was orthogonality, or quite more likely, a bad maintainer.


Absence of OO(or pointers) becomes painfully obvious in large projects, so much so that many languages fake it. Anyway, VB error handling with a bunch of goto's is lame, generally speaking OO programming doesn't have goto's.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #32 Posted: Sun May 18, 2014 8:06 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
So what? Error handling with gotos, if done well is perfectly fine. Seems like someone drank too much Dijkstra kool-aid.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #33 Posted: Sun May 18, 2014 8:29 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
RBerenguel wrote:
So what? Error handling with gotos, if done well is perfectly fine. Seems like someone drank too much Dijkstra kool-aid.


Done well VB programmers :lol: nah, that wouldn't be quick and easy, if they wanted to do it well they wouldn't use error prone goto.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #34 Posted: Sun May 18, 2014 8:32 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
Quite a big ego to dismiss all VB programmers.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #35 Posted: Sun May 18, 2014 8:53 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
RBerenguel wrote:
Quite a big ego to dismiss all VB programmers.


Oh yeah, I get a kick out of pointing out that VB programmers aren't very good, reminds me of the good old days when I graded VB sections as a TA as a service for the business school. Sure there might have been an enthusiastic and intelligent one in the bunch, but then they wouldn't have problems with moving beyond VB.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #36 Posted: Sun May 18, 2014 8:59 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
SmoothOper wrote:
RBerenguel wrote:
Quite a big ego to dismiss all VB programmers.


Oh yeah, I get a kick out of pointing out that VB programmers aren't very good, reminds me of the good old days when I graded VB sections as a TA as a service for the business school. Sure there might have been an enthusiastic and intelligent one in the bunch, but then they wouldn't have problems with moving beyond VB.


Well, I graded a lot of C assignments for computer science's introduction to algorithms and for numerical analysis in mathematics. And I won't say all C programmers suck because most of the CS students made an incredibly lousy job.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #37 Posted: Sun May 18, 2014 9:15 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
RBerenguel wrote:
SmoothOper wrote:
RBerenguel wrote:
Quite a big ego to dismiss all VB programmers.


Oh yeah, I get a kick out of pointing out that VB programmers aren't very good, reminds me of the good old days when I graded VB sections as a TA as a service for the business school. Sure there might have been an enthusiastic and intelligent one in the bunch, but then they wouldn't have problems with moving beyond VB.


Well, I graded a lot of C assignments for computer science's introduction to algorithms and for numerical analysis in mathematics. And I won't say all C programmers suck because most of the CS students made an incredibly lousy job.


I'm just saying I think you miss the point about why people program in VB in the first place, and it isn't for the OO features or good error handling, they don't care about that, they program in VB because they think it is easy, but it turns out to make OO more difficult. Furthermore, I have seen enough VB programmers code to know that this is generally the case. So, my ego is quite fine thank you.

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #38 Posted: Sun May 18, 2014 9:22 am 
Gosei
User avatar

Posts: 1585
Location: Barcelona, Spain (GMT+1)
Liked others: 577
Was liked: 298
Rank: KGS 5k
KGS: RBerenguel
Tygem: rberenguel
Wbaduk: JohnKeats
Kaya handle: RBerenguel
Online playing schedule: KGS on Saturday I use to be online, but I can be if needed from 20-23 GMT+1
No. You code in whatever language you are told. I had to code in f***ing VB for Applications once, because I had to make something work inside Excel for a client. Ended up doing it in Python and writing a small interaction layer in VBA, no way I'm doing SOAP with VB (not like the SOAP library for Python was great, had to fix it to get the WDSL file working). But as a programmer, you get into whatever there is. I'd rather code directly in binary than touching PHP, but when my coworkers or boss tells me to code something in PHP, "aye sir". I won't rewrite 8k lines of PHP in Go (or Lisp, C, or whatever other language I'm proficient at) just because I don't like the feature set.

A VB.net codebase could have been started as VB.net because a former (or current) worker is just one of the best in the world with the language (you know what? Even in "bad" languages there are people that can run in circles around you.) You don't like goto's for error handling? Fine, but the codebase is like this, take it or leave it. You like type checking? Either turn on strict or use descriptive variable names for type handling. You think OO is "the best evah" and goto's are a sin born in hell? Well, programming (and programming languages) has many facets, and you just know how to use one (and can't be sure about that). Learn more, or STFU.

_________________
Geek of all trades, master of none: the motto for my blog mostlymaths.net

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #39 Posted: Sun May 18, 2014 10:14 am 
Lives in sente

Posts: 946
Liked others: 1
Was liked: 41
Rank: IGS 5kyu
KGS: KoDream
IGS: SmoothOper
RBerenguel wrote:
No. You code in whatever language you are told. I had to code in f***ing VB for Applications once, because I had to make something work inside Excel for a client. Ended up doing it in Python and writing a small interaction layer in VBA, no way I'm doing SOAP with VB (not like the SOAP library for Python was great, had to fix it to get the WDSL file working). But as a programmer, you get into whatever there is. I'd rather code directly in binary than touching PHP, but when my coworkers or boss tells me to code something in PHP, "aye sir". I won't rewrite 8k lines of PHP in Go (or Lisp, C, or whatever other language I'm proficient at) just because I don't like the feature set.

A VB.net codebase could have been started as VB.net because a former (or current) worker is just one of the best in the world with the language (you know what? Even in "bad" languages there are people that can run in circles around you.) You don't like goto's for error handling? Fine, but the codebase is like this, take it or leave it. You like type checking? Either turn on strict or use descriptive variable names for type handling. You think OO is "the best evah" and goto's are a sin born in hell? Well, programming (and programming languages) has many facets, and you just know how to use one (and can't be sure about that). Learn more, or STFU.


I agree, up to a point. I have maintained and worked on projects that consisted of thousands of lines of VBA, which they never put on the job listing. I think it is fair for myself to point out that this is a brain dead way of doing things, and to "rub their noses in it" whenever I can get away with doing so. First things first they want to do it the easy way, the next thing is they want to be all egotistical about their little scripts, so funny. Then they write thousands of lines of code that becomes unmanageable, and jump ship. Hilarious. I've seen VB projects that had rigid project testing that had dozens upon dozens of bugs every testing cycle, with little or no new code, just bug after bug...

Top
 Profile  
 
Offline
 Post subject: Re: Game moves statistics, any program for that ?
Post #40 Posted: Mon May 19, 2014 2:10 am 
Lives in gote
User avatar

Posts: 699
Location: Switzerland
Liked others: 485
Was liked: 166
Rank: DDK
KGS: aco
IGS: oca
OGS: oca
Current version of the program tells me that :
Code:
MOVE : 9, ["Nobi","Peep","Shoulder hit"]
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
  +--------------------------------------+
0 |. . . . . . . . . . . . . . . . . . . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. . . X . . . . . X . . . X . X . . . |
4 |. . . . . . . . . . . . . . . . X . . |
5 |. . . . . . . . . . . . . . . O O . . |
6 |. . . . . . . . . . . . . . . . . . . |
7 |. . . . . . . . . . . . . . . . X . . |
8 |. . . . . . . . . . . . . . . . .(O). |
9 |. . . X . . . . . X . . . . . X X O . |
0 |. . . . . . . . . . . . . . . . . O . |
1 |. . . . . . . . . . . . . . . . . . . |
2 |. . . . . . . . . . . . . . . . . . . |
3 |. . . . . . . . . . . . . . . . . . . |
4 |. . . . . . . . . . . . . . . . . . . |
5 |. . . X . . . . . X . . . . . X . . . |
6 |. . . . . . . . . . . . . . . . . . . |
7 |. . . . . . . . . . . . . . . . . . . |
8 |. . . . . . . . . . . . . . . . . . . |
  +--------------------------------------+

"Nobi" -> ok
"Peep" -> ok
but "Shoulder hit"... is this a shoulder hit ? from below :-?

_________________
Converting the book Shape UP! by Charles Matthews/Seong-June Kim
to the gobook format. last updated april 2015 - Index of shapes, p.211 / 216

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group