chamion / bj-kombinatorinen-analysoija Goto Github PK
View Code? Open in Web Editor NEWSelvittää jakajan käden todennäköisyydet annetulle korttipakalle.
Selvittää jakajan käden todennäköisyydet annetulle korttipakalle.
Your Pit configuration should look like this
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.8</version>
<configuration>
<targetClasses>
<param>bjka.*</param>
<param>tietorakenteet.*</param>
</targetClasses>
<targetTests>
<param>bjka.*</param>
<param>tietorakenteet.*</param>
</targetTests>
</configuration>
</plugin>
Instead of this
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.8</version>
<configuration>
<targetClasses>
</targetClasses>
<targetTests>
</targetTests>
</configuration>
</plugin>
So you have to add targetClasses and targetTests. Close this issue after you have corrected the bugs.
Jonon bugin jossa get() voi sotkea tulevan käytön voi korjata lisäämällä ehto lauseen
if(this.paa == this.hanta){
return null;
}
<tämänhetkinen get()>
Eli tarkistamalla onko jonossa alkioita jäljellä, ja jos on, palauttaa normaalisti, jos ei, palautetaan esim. 0 tai null.
Jonoon voi myös lisätä toiminnallisuuden tarkistamaan ettei lisätä alkiota täyteen jonoon (jolloin kirjoitettaisiin lisättävä alkio vanhan käyttämättömän alkion päälle)
Jonon isEmpty() metodin voi hoitaa esim. muuttujalla "private boolean empty", jonka arvoksi asetetaan true konstruktorissa ja false lisaa() metodissa. Ja sen arvo palautetaan isEmpty() metodissa.
Analysoija-luokan metodit analysoi() ja kasitteleTapahtuma() ovat aika pitkiä, niitä voisi mahdollisuuksien mukaan yrittää jakaa osiin koodin selkeyttämiseksi.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.