Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java Project / Library to evaluate poker hands

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Location
    Omaha, NE
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Project / Library to evaluate poker hands

    I have some experience with Java but I would still consider myself a beginner. I recently came across this link: http://github.com/phstc/javapokertexasholdem
    The link contains folder and files to a texas holdem card evaluator library/project. The folders are named: .settings, src, test and the files are named: .classpath, .gitignore, .project, README.rdoc, pom.xml.
    The folder src and test contain actual java code this part I get (80% of it), but the .settings folder contains files named: org.eclipse.jdt.core.prefs and org.maven.ide.eclipse.prefs.

    Are these files meant for the Eclipse IDE? Do I need them for proper operation of the code in src and test? If so, could you explain briefly what they do? Is it possible to use these folders and files (other than src and test) in the NetBeans IDE?

    Here are the contents of org.eclipse.jdt.core.prefs.
    eclipse.preferences.version=1
    org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
    org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
    org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
    org.eclipse.jdt.core.compiler.compliance=1.5
    org.eclipse.jdt.core.compiler.debug.lineNumber=generate
    org.eclipse.jdt.core.compiler.debug.localVariable=generate
    org.eclipse.jdt.core.compiler.debug.sourceFile=generate
    org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
    org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
    org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
    org.eclipse.jdt.core.compiler.source=1.5

    Here are the contents of org.maven.ide.eclipse.prefs.
    activeProfiles=
    eclipse.preferences.version=1
    fullBuildGoals=process-test-resources
    includeModules=false
    resolveWorkspaceProjects=true
    resourceFilterGoals=process-resources resources\:testResources
    skipCompilerPlugin=true
    version=1

    Here are the contents of .classpath
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" output="target/classes" path="src"/>
    <classpathentry kind="src" output="target/test-classes" path="test"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
    <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
    <classpathentry kind="output" path="target/classes"/>
    </classpath>

    Here are the contents of .gitignore
    .DS_Store
    *~
    *.swp
    *.class
    mkmf.log
    target/*
    stats*.csv
    *.settings*

    Here are the contents of .project
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
    <name>JavaPokerTexasHoldem</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.maven.ide.eclipse.maven2Builder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>org.maven.ide.eclipse.maven2Nature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
    </projectDescription>

    Here are the contents of pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.cantero</groupId>
      <artifactId>javapokertexasholdem</artifactId>
      <version>0.1.0</version>
      <dependencies>
       <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <version>4.8.1</version>
    <scope>test</scope>
       </dependency>
       <dependency>
       <!-- PokerCard.equals use EqualsBuilder from commons-lang, see PlayerDecoratorTest-->
       <groupId>commons-lang</groupId>
       <artifactId>commons-lang</artifactId>
       <version>20030203.000129</version>
    <scope>test</scope>
       </dependency>
       <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-all</artifactId>
       <version>1.8.4</version>
    <scope>test</scope>
    </dependency>
      </dependencies>
        <build>
          <sourceDirectory>src</sourceDirectory>
          <testSourceDirectory>test</testSourceDirectory>
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <configuration>
                      <target>1.5</target>
                      <source>1.5</source>
                  </configuration>
              </plugin>
          </plugins>
      </build>
    </project>


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Java Project / Library to evaluate poker hands

    What exactly are you trying to do? Those all look like preference files to me, which you don't really need to worry about. I might suggest getting rid of any files not used by the source and starting a new project from the source (or, better yet, use the command line to compile).
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Using Protected Methods, in a Java Library
    By WACman in forum Object Oriented Programming
    Replies: 2
    Last Post: March 10th, 2011, 05:42 PM
  2. Evaluate the environmental flexibility of programming in Java?
    By azzic7 in forum Java Theory & Questions
    Replies: 1
    Last Post: June 26th, 2010, 11:57 AM
  3. Replies: 5
    Last Post: June 10th, 2010, 10:19 AM
  4. Replies: 0
    Last Post: May 3rd, 2010, 04:42 AM
  5. Replies: 1
    Last Post: October 7th, 2008, 07:35 AM